|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IC > IColorRampSymbol Interface > IColorRampSymbol.LegendClassIndex Property (ArcObjects .NET 10.5 SDK) | 
Ordinal number of the legend class for the symbol (0,1,2).
[Visual Basic .NET] Public Property LegendClassIndex As Integer
[C#] public int LegendClassIndex {get; set;}
[C++]
HRESULT get_LegendClassIndex(
  long* Index
);
[C++]
HRESULT put_LegendClassIndex(
  long Index
);
[C++]
Parameters Index [out, retval] Index is a parameter of type long Index [in] Index is a parameter of type long