Font.ColorIndex Property
Returns or sets the color of the font.
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 Font
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. Use to specify automatic color.
xlColorIndexNone.