ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / GetSelectedLegendClasses Method

GetSelectedLegendClasses Method
Returns the collection of legend classes selected in the TOC.
Syntax
public IReadOnlyList<LegendClass> GetSelectedLegendClasses()

Return Value

The collection of legend classes selected in the TOC.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also