[]
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.
IFormatColor BarColor { get; }
ReadOnly Property BarColor As IFormatColor
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;