ArcGIS Pro 2.7 API Reference Guide
ClassIndex Property

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

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LegendClass Class
LegendClass Members