[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDataBar.BarColor

BarColor Property

BarColor

Gets the color of the bars in this data bar conditional formatting rule.

Returns an IFormatColor object that you can use to read or modify the fill color applied to the data bars.

Declaration
IFormatColor BarColor { get; }
ReadOnly Property BarColor As IFormatColor
Examples
worksheet.Range["A1:A3"].Value = new object[,] {{10}, {30}, {20}};
IDataBar dataBar = worksheet.Range["A1:A3"].FormatConditions.AddDatabar();
IFormatColor barColor = dataBar.BarColor;
barColor.Color = Color.Red;