[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IFormatColor.ColorIndex

ColorIndex Property

ColorIndex

Gets or sets the color index for this format color item in the current color palette.

Declaration
int ColorIndex { get; set; }
Property ColorIndex As Integer
Examples
worksheet.Range["A1:A3"].Value = new object[,] {{-10}, {0}, {20}};
IDataBar dataBar = worksheet.Range["A1:A3"].FormatConditions.AddDatabar();
IFormatColor axisColor = dataBar.AxisColor;
axisColor.ColorIndex = 5;
int colorIndex = axisColor.ColorIndex;