[]
An IDataBarBorder object is used to configure whether a data bar shows a border and, if so, the border color and border type. Use IDataBar.getBarBorder() to obtain this interface from a data bar conditional formatting rule.
worksheet.getRange("A1:A5").setValue(new Object[][] {{1}, {2}, {3}, {4}, {5}});
IDataBar dataBar = worksheet.getRange("A1:A5").getFormatConditions().addDatabar();
IDataBarBorder border = dataBar.getBarBorder();
border.setType(DataBarBorderType.Solid);
border.getColor().setColor(Color.GetRed());
getColor()getType()voidsetType(DataBarBorderType value) Use the returned IFormatColor object to read or modify the border color for the current data bar rule.
worksheet.getRange("A1:A5").setValue(new Object[][] {{1}, {2}, {3}, {4}, {5}});
IDataBar dataBar = worksheet.getRange("A1:A5").getFormatConditions().addDatabar();
IDataBarBorder border = dataBar.getBarBorder();
border.setType(DataBarBorderType.Solid);
IFormatColor color = border.getColor();
color.setColor(Color.GetRed());
IFormatColor.The returned value indicates whether the data bar border is disabled or displayed as a solid border.
worksheet.getRange("A1:A5").setValue(new Object[][] {{1}, {2}, {3}, {4}, {5}});
IDataBar dataBar = worksheet.getRange("A1:A5").getFormatConditions().addDatabar();
IDataBarBorder border = dataBar.getBarBorder();
border.setType(DataBarBorderType.Solid);
DataBarBorderType type = border.getType();
Use this method to control whether the data bar displays no border or a solid border.
worksheet.getRange("A1:A5").setValue(new Object[][] {{1}, {2}, {3}, {4}, {5}});
IDataBar dataBar = worksheet.getRange("A1:A5").getFormatConditions().addDatabar();
IDataBarBorder border = dataBar.getBarBorder();
border.setType(DataBarBorderType.Solid);
value - The data bar border type. Must not be null.