[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(Showing Draft Content)

DeleteShiftDirection

Enum Class DeleteShiftDirection

java.lang.Object
java.lang.Enum<DeleteShiftDirection>
com.grapecity.documents.excel.DeleteShiftDirection
All Implemented Interfaces:
Serializable, Comparable<DeleteShiftDirection>, Constable

public enum DeleteShiftDirection extends Enum<DeleteShiftDirection>
指定如何移动单元格以替换已删除的单元格。

与 IRange.delete(DeleteShiftDirection) 方法一起使用,用于控制删除后剩余单元格移动的方向。


 worksheet.getRange("A1:C3").setValue(new Object[][] {
     {1, 2, 3},
     {4, 5, 6},
     {7, 8, 9}
 });
 worksheet.getRange("B2").delete(DeleteShiftDirection.Left);
 
  • Enum Constant Details

  • Method Details

    • values

      public static DeleteShiftDirection[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DeleteShiftDirection valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null