ArcGIS Pro 2.6 API Reference Guide
GetSelectedElements Method (GraphicsLayerExtensions)

ArcGIS.Desktop.Mapping Namespace > GraphicsLayerExtensions Class : GetSelectedElements Method
Gets the currently selected elements within the GraphicsLayer collection.
Syntax
public static IReadOnlyList<Element> GetSelectedElements( 
   GraphicsLayer graphicsLayer
)
Public Shared Function GetSelectedElements( _
   ByVal graphicsLayer As GraphicsLayer _
) As IReadOnlyList(Of Element)

Parameters

graphicsLayer

Return Value

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