[]
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.
int ColorIndex { get; set; }
Property ColorIndex As Integer
IBorder border = worksheet.Range["A1"].Borders[BordersIndex.EdgeBottom];
border.LineStyle = BorderLineStyle.Thin;
border.ColorIndex = (int)ColorDataIndex.Automatic;
ColorDataIndex colorIndex = (ColorDataIndex)border.ColorIndex;