Share via


FormatColor.Color Property

Returns or sets the fill color associated with a threshold for a data bar or color scale conditional formatting rule.

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

Syntax

'Declaration
Property Color As Object
    Get
    Set
'Usage
Dim instance As FormatColor
Dim value As Object

value = instance.Color

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

Property Value

Type: System.Object
Object

Remarks

The format color is expressed as an ColorFormat.RGBfunction. For example, to set the color to red, use RGB(255,0,0).

See Also

Reference

FormatColor Interface

FormatColor Members

Microsoft.Office.Interop.Excel Namespace