[]
Gets or sets the color index used for the font.
The value can be a palette color index or a special color index value such as Automatic.
int ColorIndex { get; set; }
Property ColorIndex As Integer
IFont font = worksheet.Range["A1"].Font;
// Use a special color index value.
font.ColorIndex = (int)ColorDataIndex.Automatic;
ColorDataIndex colorIndex = (ColorDataIndex)font.ColorIndex;