ArcGIS Pro 2.7 API Reference Guide
GroupIndex Property

ArcGIS.Desktop.Mapping Namespace > LegendClass Class : GroupIndex Property
Gets the group index.
Syntax
public int GroupIndex {get;}
Public ReadOnly Property GroupIndex As Integer
Remarks
Refer to Layer.LegendGroups. GroupIndex is an index into that collection to get the legend class's group.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LegendClass Class
LegendClass Members