[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ISeries.InvertColor

InvertColor Property

InvertColor

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

Use this property together with InvertIfNegative to control how negative values are displayed in the series.

Declaration
IColorFormat InvertColor { get; }
ReadOnly Property InvertColor As IColorFormat
Examples
worksheet.Range["A1:B4"].Value = new object[,] {{"Month", "Amount"}, {"Jan", 12}, {"Feb", -8}, {"Mar", 15}};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
ISeries series = chart.SeriesCollection[0];
series.InvertIfNegative = true;
IColorFormat invertColor = series.InvertColor;
invertColor.RGB = Color.Red;