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

In This Topic
    GetSelectedLegendClasses Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also