[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDataBar.AxisColor

AxisColor Property

AxisColor

Gets the color of the axis for cells with conditional formatting as data bars.

Returns an IFormatColor object that you can use to read or modify the axis color of the data bar rule.

Declaration
IFormatColor AxisColor { get; }
ReadOnly Property AxisColor As IFormatColor
Property Value
Type Description
IFormatColor

An IFormatColor object that represents the axis color of the data bar rule.

Examples
worksheet.Range["A1:A3"].Value = new object[,] {{-10}, {0}, {20}};
IDataBar dataBar = worksheet.Range["A1:A3"].FormatConditions.AddDatabar();
dataBar.AxisPosition = DataBarAxisPosition.Automatic;
IFormatColor axisColor = dataBar.AxisColor;
axisColor.Color = Color.Blue;