ArcGIS Pro 2.6 API Reference Guide
ClearSelection Method (GraphicsLayerExtensions)

ArcGIS.Desktop.Mapping Namespace > GraphicsLayerExtensions Class : ClearSelection Method
Clears the current element selection within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public static void ClearSelection( 
   GraphicsLayer graphicsLayer
)
Public Shared Sub ClearSelection( _
   ByVal graphicsLayer As GraphicsLayer _
) 

Parameters

graphicsLayer
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
The map view displaying the graphics layer should be initialized.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

GraphicsLayerExtensions Class
GraphicsLayerExtensions Members