ArcGIS Pro 2.7 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

See Also

Reference

GraphicsLayerExtensions Class
GraphicsLayerExtensions Members