ArcGIS Pro 2.7 API Reference Guide
TargetGraphicsLayer Property

ArcGIS.Desktop.Mapping Namespace > Map Class : TargetGraphicsLayer Property
Gets or sets the graphics layer that acts as a target for interactive drawing tools.
Syntax
public GraphicsLayer TargetGraphicsLayer {get; set;}
Public Property TargetGraphicsLayer As GraphicsLayer
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 10, Windows 8.1

See Also

Reference

Map Class
Map Members