ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Reports Namespace / ReportView Class / GetSelectedElements Method
Example

In This Topic
    GetSelectedElements Method (ReportView)
    In This Topic
    Returns a collection of selected report elements.
    Syntax
    Public Function GetSelectedElements() As IReadOnlyList(Of Element)
    public IReadOnlyList<Element> GetSelectedElements()

    Return Value

    A collection of page report 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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also