[]
Serializable, Comparable<CornerPosition>, Constable将此枚举与 CornerFold 一起使用,可以指示装饰单元格的哪些角显示折角。每个枚举值都表示一个标志,可与 EnumSet 中的其他值组合,以在多个位置应用折角。
ICornerFold cornerFold = new CornerFold(
Color.GetRed(),
EnumSet.of(CornerPosition.LeftTop, CornerPosition.RightTop),
8
);
worksheet.getRange("A1").setDecoration(new CellDecoration(cornerFold));
Enum.EnumDesc<E extends Enum<E>>static CornerPositionforValue(int value) intgetValue()static CornerPositionstatic CornerPosition[]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