[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IBorder.ColorIndex

ColorIndex Property

ColorIndex

Gets or sets the color index of this border.

The value can be a palette color index or one of the special values defined by ColorDataIndex. None may be returned when reading the value, but setting None on a single IBorder does not change the border color.

Declaration
int ColorIndex { get; set; }
Property ColorIndex As Integer
Examples
IBorder border = worksheet.Range["A1"].Borders[BordersIndex.EdgeBottom];
border.LineStyle = BorderLineStyle.Thin;
border.ColorIndex = (int)ColorDataIndex.Automatic;
ColorDataIndex colorIndex = (ColorDataIndex)border.ColorIndex;