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

GetSelectedElements Method (ReportView)
Returns a collection of selected report elements.
Syntax
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, Windows 10, Windows 8.1

ArcGIS Pro version: 2.7 or higher.
See Also