[]
Serializable, Comparable<InsertShiftDirection>, Constable与 IRange.insert(InsertShiftDirection) 方法一起使用,可以控制现有单元格是下移还是右移,以便为新插入的单元格腾出空间。
worksheet.getRange("A1:C3").setValue(new Object[][] {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
});
worksheet.getRange("B2").insert(InsertShiftDirection.Down);
worksheet.getRange("C2").insert(InsertShiftDirection.Right);
Enum.EnumDesc<E extends Enum<E>>static InsertShiftDirectionstatic InsertShiftDirection[]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