Sets or returns the color of the border, as an ExcelWriter Color object. If multiple colors were assigned to border parts, Color will return the color of the top border.
Color is a
read / write property.
Examples:
[csharp]
// Get Color
Color c = b.Color;
// Set Color
b.Color = wb.Palette.GetClosestColor(System.Drawing.Color.Blue);
[vbnet]
' Get Color
Dim c As Color = b.Color
' Set Color
b.Color = wb.Palette.GetClosestColor(System.Drawing.Color.Blue)