[]
Serializable, Comparable<IconPosition>, Constable将此枚举与 CellDecorationIcon 一起使用,可以控制单元格装饰图标显示在单元格左侧还是右侧、单元格文本任一侧,或者单元格边界之外。通过 IRange.setDecoration(ICellDecoration) 应用装饰时会使用此设置。
worksheet.getRange("A1").setValue("Status");
ICellDecorationIcon icon = new CellDecorationIcon(
"data:image/svg+xml;base64,PHN2Zz4=",
12, 12, IconPosition.LeftOfText);
CellDecoration decoration = new CellDecoration(Arrays.asList(icon));
worksheet.getRange("A1").setDecoration(decoration);
Enum.EnumDesc<E extends Enum<E>>static IconPositionforValue(int value) intgetValue()static IconPositionstatic IconPosition[]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