ArcGIS Pro 2.8 API Reference Guide
GetSelectedLegendClasses Method

ArcGIS.Desktop.Mapping Namespace > MapView Class : GetSelectedLegendClasses Method
Returns the collection of legend classes selected in the TOC.
Syntax
public IReadOnlyList<LegendClass> GetSelectedLegendClasses()
Public Function GetSelectedLegendClasses() As IReadOnlyList(Of LegendClass)

Return Value

The collection of legend classes selected in the TOC.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members