Partager via


Series.InvertColorIndex 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 InvertColorIndex As Integer
    Get
    Set
'Usage
Dim instance As Series
Dim value As Integer

value = instance.InvertColorIndex

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

Property Value

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

Remarks

Read/write.

The InvertColorIndex property enables you to set the fill color for negative data points as a color index value from 0 to 56. Instead of using the InvertColorIndex property, you can use the InvertColor property, which enables you to set the color as a specific numeric, hexadecimal, octal, or RGB color value.

For the InvertColorIndex property 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