public static enum ClientAnchor.AnchorType extends java.lang.Enum<ClientAnchor.AnchorType>
Enum Constant and Description |
---|
DONT_MOVE_AND_RESIZE
Do Not Move or Resize With Underlying Rows/Columns (3)
|
DONT_MOVE_DO_RESIZE
Don't Move but do Resize With Anchor Cells (1)
|
MOVE_AND_RESIZE
Move and Resize With Anchor Cells (0)
|
MOVE_DONT_RESIZE
Move With Cells but Do Not Resize (2)
|
Modifier and Type | Field and Description |
---|---|
short |
value |
Modifier and Type | Method and Description |
---|---|
static ClientAnchor.AnchorType |
byId(int value)
return the AnchorType corresponding to the code
(返回代码对应的AnchorType)
|
static ClientAnchor.AnchorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static ClientAnchor.AnchorType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final ClientAnchor.AnchorType MOVE_AND_RESIZE
Specifies that the current drawing shall move and resize to maintain its row and column anchors (i.e. the object is anchored to the actual from and to row and column)
(使用锚单元移动和调整大小 (0) 指定当前图形应移动和调整大小以保持其行和列锚点(即对象锚定到实际的行和列))public static final ClientAnchor.AnchorType DONT_MOVE_DO_RESIZE
Specifies that the current drawing shall not move with its row and column, but should be resized. This option is not normally used, but is included for completeness.
Note: Excel has no setting for this combination, nor does the ECMA standard. (Don't Move but do Resize With Anchor Cells (1) 指定当前图形不应随其行和列一起移动,但应调整大小。此选项通常不使用,但为了完整性而包含在内。注意:Excel 没有这种组合的设置,ECMA 标准也没有。)public static final ClientAnchor.AnchorType MOVE_DONT_RESIZE
Specifies that the current drawing shall move with its row and column (i.e. the object is anchored to the actual from row and column), but that the size shall remain absolute.
If additional rows/columns are added between the from and to locations of the drawing, the drawing shall move its to anchors as needed to maintain this same absolute size.
(随单元格移动但不调整大小 (2) 指定当前图形应随其行和列移动(即对象从行和列锚定到实际的行和列),但大小应保持绝对。如果在绘图的 from 和 to 位置之间添加了额外的行/列,则绘图应根据需要将其移动到锚点以保持相同的绝对大小。)public static final ClientAnchor.AnchorType DONT_MOVE_AND_RESIZE
Specifies that the current start and end positions shall be maintained with respect to the distances from the absolute start point of the worksheet.
If additional rows/columns are added before the drawing, the drawing shall move its anchors as needed to maintain this same absolute position.
(不要移动或调整基础行/列的大小 (3) 指定当前的开始和结束位置应相对于与工作表绝对起点的距离保持不变。如果在绘图之前添加了额外的行/列,则绘图应根据需要移动其锚点以保持相同的绝对位置。)public static ClientAnchor.AnchorType[] values()
for (ClientAnchor.AnchorType c : ClientAnchor.AnchorType.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (ClientAnchor.AnchorType c : ClientAnchor.AnchorType.values()) System.out.println(c);)
public static ClientAnchor.AnchorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
@Internal public static ClientAnchor.AnchorType byId(int value)
value
- the anchor type code
(value - 锚类型代码)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.