[]
Serializable, Comparable<BorderLineStyle>, Constable将此枚举与边框相关 API(例如 IBorder.setLineStyle(BorderLineStyle))一起使用,以控制单元格或区域边框的绘制方式。
IRange range = worksheet.getRange("A1:B2");
range.setValue("Test");
range.getBorders().get(BordersIndex.EdgeBottom).setColor(Color.GetBlue());
range.getBorders().get(BordersIndex.EdgeBottom).setLineStyle(BorderLineStyle.Thick);
Enum.EnumDesc<E extends Enum<E>>static BorderLineStyleforValue(int value) intgetValue()static BorderLineStylestatic BorderLineStyle[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null使用此方法可将整数值(例如从 getValue() 获取的值)转换回匹配的 BorderLineStyle 常量。
value - 表示枚举常量的整数值。BorderLineStyle 枚举常量。ArrayIndexOutOfBoundsException - 如果 value 超出已定义枚举值的范围。