ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LegendClass Class / GroupIndex Property
Version

GroupIndex Property
Gets the group index.
Syntax
public int GroupIndex {get;}
Remarks
Refer to Layer.LegendGroups. GroupIndex is an index into that collection to get the legend class's group.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also