[]
Serializable, Comparable<ReferenceStyle>, Constable将此枚举与 Workbook.setReferenceStyle(ReferenceStyle) 一起使用,可以控制公式和引用使用 A1 表示法还是 R1C1 表示法。
workbook.setReferenceStyle(ReferenceStyle.R1C1);
worksheet.getRange("A1").setFormula("=R[1]C[1]");
Enum.EnumDesc<E extends Enum<E>>static ReferenceStylestatic ReferenceStyle[]values()绝对引用写作 R1C1。相对引用写作 R[y]C[x],其中 y 是相对行偏移量,x 是相对列偏移量。
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