Partager via


Series.InvertColor Property

Gets or sets the fill color for negative data points in a series.

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

Syntax

'Declaration
Property InvertColor As Integer
    Get
    Set
'Usage
Dim instance As Series
Dim value As Integer

value = instance.InvertColor

instance.InvertColor = value
int InvertColor { get; set; }

Property Value

Type: System.Int32
The fill color for negative data points in a series.

Remarks

Read/write.

The InvertColor property enables you to set the fill color for negative data points as a specific numeric, hexadecimal, octal, or RGB color value. To set the value as an RBG value, use the Visual Basic RGB function. Instead of using the InvertColor property, you can use the InvertColorIndex property, which uses a simpler set of integer values from the current color palette.

For the InvertColorproperty to have an effect, the InvertIfNegative property of the Series object must also be set to true.

See Also

Reference

Series Interface

Series Members

Microsoft.Office.Interop.Excel Namespace