ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / TargetGraphicsLayer Property

In This Topic
    TargetGraphicsLayer Property
    In This Topic
    Gets or sets the graphics layer that acts as a target for interactive drawing tools.
    Syntax
    Public Property TargetGraphicsLayer As GraphicsLayer
    public GraphicsLayer TargetGraphicsLayer {get; set;}
    Remarks
    This is an in-memory setting; it's not saved in the project. It can become null if all graphics layers are removed, but it cannot be cleared.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also