ShapeTextAlignment
ShapeTextAlignment class
Represents the setting of shape’s text alignment;
Properties
| Name | Type | Description |
|---|---|---|
| IsTextWrapped | boolean | Gets and sets the text wrapped type of the shape which contains text. |
| RotateTextWithShape | boolean | Indicates whether rotating text with shape. |
| TextVerticalOverflow | int | Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer con |
| TextHorizontalOverflow | int | Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer c |
| RotationAngle | float | Gets and sets the rotation of the shape. |
| TextVerticalType | int | Gets and sets the text direction. The value of the property is TextVerticalType integer constant. |
| IsLockedText | boolean | Indicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected. |
| AutoSize | boolean | Indicates if size of shape is adjusted automatically according to its content. |
| TextShapeType | int | Gets and set the transform type of text. The value of the property is AutoShapeType integer constant. |
| TopMarginPt | float | Returns the top margin in unit of Points |
| BottomMarginPt | float | Returns the bottom margin in unit of Points |
| LeftMarginPt | float | Returns the left margin in unit of Points |
| RightMarginPt | float | Returns the right margin in unit of Points |
| IsAutoMargin | boolean | Indicates whether the margin of the text frame is automatic. |
| NumberOfColumns | int | Gets and sets the number of columns of text in the bounding rectangle. |
Methods
| Name | Description |
|---|---|
| equals | Determines whether this instance has the same value as another specified ShapeTextAlignment object. |
| hashCode |
ShapeTextAlignment.IsTextWrapped property
Gets and sets the text wrapped type of the shape which contains text.
Type: boolean
ShapeTextAlignment.RotateTextWithShape property
Indicates whether rotating text with shape.
Type: boolean
ShapeTextAlignment.TextVerticalOverflow property
Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer constant.
Type: int
ShapeTextAlignment.TextHorizontalOverflow property
Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer constant.
Type: int
ShapeTextAlignment.RotationAngle property
Gets and sets the rotation of the shape.
Type: float
ShapeTextAlignment.TextVerticalType property
Gets and sets the text direction. The value of the property is TextVerticalType integer constant.
Type: int
ShapeTextAlignment.IsLockedText property
Indicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected.
Type: boolean
ShapeTextAlignment.AutoSize property
Indicates if size of shape is adjusted automatically according to its content.
Type: boolean
ShapeTextAlignment.TextShapeType property
Gets and set the transform type of text. The value of the property is AutoShapeType integer constant.
Type: int
ShapeTextAlignment.TopMarginPt property
Returns the top margin in unit of Points
Type: float
ShapeTextAlignment.BottomMarginPt property
Returns the bottom margin in unit of Points
Type: float
ShapeTextAlignment.LeftMarginPt property
Returns the left margin in unit of Points
Type: float
ShapeTextAlignment.RightMarginPt property
Returns the right margin in unit of Points
Type: float
ShapeTextAlignment.IsAutoMargin property
Indicates whether the margin of the text frame is automatic.
Type: boolean
ShapeTextAlignment.NumberOfColumns property
Gets and sets the number of columns of text in the bounding rectangle.
Type: int
equals(obj)
Determines whether this instance has the same value as another specified ShapeTextAlignment object.
| Parameter | Type | Description |
|---|---|---|
| obj | Object | The ShapeTextAlignment object to compare with this instance. |
Returns: true if the value of the obj parameter is the same as the value of this instance; otherwise, false. If obj is null, this method returns false.