ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Reports Namespace / Report Class / GetSelectedElements Method
Example

In This Topic
    GetSelectedElements Method (Report)
    In This Topic
    Gets the set of selected elements on the report.
    Syntax
    public ReadOnlyObservableCollection<Element> GetSelectedElements()
    Public Function GetSelectedElements() As ReadOnlyObservableCollection(Of Element)

    Return Value

    The set of selected elements.
    Example
    Get selected elements
    IReadOnlyList<Element> selectedElements = report.GetSelectedElements();
    //Can also use the active ReportView
    IReadOnlyList<Element> selectedElementsFromView = ReportView.Active.GetSelectedElements();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also