[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IFont.ColorIndex

ColorIndex Property

ColorIndex

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.

Declaration
int ColorIndex { get; set; }
Property ColorIndex As Integer
Examples
IFont font = worksheet.Range["A1"].Font;

// Use a special color index value.
font.ColorIndex = (int)ColorDataIndex.Automatic;

ColorDataIndex colorIndex = (ColorDataIndex)font.ColorIndex;