[]
Gets an object that specifies the border color of data bars in a conditional formatting rule.
Use the returned IFormatColor object to read or modify the border color for the current data bar rule.
IFormatColor Color { get; }
ReadOnly Property Color As IFormatColor
worksheet.Range["A1:A5"].Value = new object[,] {{1}, {2}, {3}, {4}, {5}};
IDataBar dataBar = worksheet.Range["A1:A5"].FormatConditions.AddDatabar();
IDataBarBorder border = dataBar.BarBorder;
border.Type = DataBarBorderType.Solid;
IFormatColor color = border.Color;
color.Color = Color.Red;