Share via


Borders.ColorIndex Property

Returns or sets the color of all four borders. Returns Null if all four borders aren't the same color.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property ColorIndex As Object
    Get
    Set
'Usage
Dim instance As Borders
Dim value As Object

value = instance.ColorIndex

instance.ColorIndex = value
Object ColorIndex { get; set; }

Property Value

Type: System.Object

Remarks

The color is specified as an index value into the current color palette, or as one of the following XlColorIndex constants:

xlColorIndexAutomatic

xlColorIndexNone

See Also

Reference

Borders Interface

Borders Members

Microsoft.Office.Interop.Excel Namespace