ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IElementContainer Interface / GetSelectedElements Method

In This Topic
    GetSelectedElements Method (IElementContainer)
    In This Topic
    Gets the collection of currently selected elements
    Syntax
    Function GetSelectedElements() As IReadOnlyList(Of IElement)
    IReadOnlyList<IElement> GetSelectedElements()

    Return Value

    A list of 0 or more elements
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also