
## ShapeTextAlignment class

Represents the setting of shape's text alignment;

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [IsTextWrapped](#istextwrapped) | boolean | Gets and sets the text wrapped type of the shape which contains text. |
| [RotateTextWithShape](#rotatetextwithshape) | boolean | Indicates whether rotating text with shape. |
| [TextVerticalOverflow](#textverticaloverflow) | Number | Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer con |
| [TextHorizontalOverflow](#texthorizontaloverflow) | Number | Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer c |
| [RotationAngle](#rotationangle) | Number | Gets and sets the rotation of the shape. |
| [TextVerticalType](#textverticaltype) | Number | Gets and sets the text direction. The value of the property is TextVerticalType integer constant. |
| [IsLockedText](#islockedtext) | boolean | Indicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected. |
| [AutoSize](#autosize) | boolean | Indicates if size of shape is adjusted automatically according to its content. |
| [TextShapeType](#textshapetype) | Number | Gets and set the transform type of text. The value of the property is AutoShapeType integer constant. |
| [TopMarginPt](#topmarginpt) | Number | Returns the top margin in unit of Points |
| [BottomMarginPt](#bottommarginpt) | Number | Returns the bottom margin in unit of Points |
| [LeftMarginPt](#leftmarginpt) | Number | Returns the left margin in unit of Points |
| [RightMarginPt](#rightmarginpt) | Number | Returns the right margin in unit of Points |
| [IsAutoMargin](#isautomargin) | boolean | Indicates whether the margin of the text frame is automatic. |
| [NumberOfColumns](#numberofcolumns) | Number | Gets and sets the number of columns of text in the bounding rectangle. |

## Methods

| Name | Description |
| --- | --- |
| [equals](#equals) | Determines whether this instance has the same value as another specified ShapeTextAlignment object. |
| [hashCode](#hashcode) |  |

### ShapeTextAlignment.IsTextWrapped property {#istextwrapped}

Gets and sets the text wrapped type of the shape which contains text.

**Type:** boolean

### ShapeTextAlignment.RotateTextWithShape property {#rotatetextwithshape}

Indicates whether rotating text with shape.

**Type:** boolean

### ShapeTextAlignment.TextVerticalOverflow property {#textverticaloverflow}

Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer constant.

**Type:** Number

### ShapeTextAlignment.TextHorizontalOverflow property {#texthorizontaloverflow}

Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer constant.

**Type:** Number

### ShapeTextAlignment.RotationAngle property {#rotationangle}

Gets and sets the rotation of the shape.

**Type:** Number

### ShapeTextAlignment.TextVerticalType property {#textverticaltype}

Gets and sets the text direction. The value of the property is TextVerticalType integer constant.

**Type:** Number

### ShapeTextAlignment.IsLockedText property {#islockedtext}

Indicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected.

**Type:** boolean

### ShapeTextAlignment.AutoSize property {#autosize}

Indicates if size of shape is adjusted automatically according to its content.

**Type:** boolean

### ShapeTextAlignment.TextShapeType property {#textshapetype}

Gets and set the transform type of text. The value of the property is AutoShapeType integer constant.

**Type:** Number

### ShapeTextAlignment.TopMarginPt property {#topmarginpt}

Returns the top margin in unit of Points

**Type:** Number

### ShapeTextAlignment.BottomMarginPt property {#bottommarginpt}

Returns the bottom margin in unit of Points

**Type:** Number

### ShapeTextAlignment.LeftMarginPt property {#leftmarginpt}

Returns the left margin in unit of Points

**Type:** Number

### ShapeTextAlignment.RightMarginPt property {#rightmarginpt}

Returns the right margin in unit of Points

**Type:** Number

### ShapeTextAlignment.IsAutoMargin property {#isautomargin}

Indicates whether the margin of the text frame is automatic.

**Type:** boolean

### ShapeTextAlignment.NumberOfColumns property {#numberofcolumns}

Gets and sets the number of columns of text in the bounding rectangle.

**Type:** Number

### equals(obj) {#equals}

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.

### hashCode() {#hashcode}
