
## ShapeTextAlignment class

Represents the setting of shape's text alignment;

## Methods

| Name | Description |
| --- | --- |
| [equals(obj)](#equals) | Determines whether this instance has the same value as another specified ShapeTextAlignment object. |
| [getAutoSize()](#getautosize) | Indicates if size of shape is adjusted automatically according to its content. |
| [getBottomMarginPt()](#getbottommarginpt) | Returns the bottom margin in unit of Points |
| [getLeftMarginPt()](#getleftmarginpt) | Returns the left margin in unit of Points |
| [getNumberOfColumns()](#getnumberofcolumns) | Gets and sets the number of columns of text in the bounding rectangle. |
| [getRightMarginPt()](#getrightmarginpt) | Returns the right margin in unit of Points |
| [getRotateTextWithShape()](#getrotatetextwithshape) | Indicates whether rotating text with shape. |
| [getRotationAngle()](#getrotationangle) | Gets and sets the rotation of the shape. |
| [getTextHorizontalOverflow()](#gettexthorizontaloverflow) | Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer c |
| [getTextShapeType()](#gettextshapetype) | Gets and set the transform type of text. The value of the property is AutoShapeType integer constant. |
| [getTextVerticalOverflow()](#gettextverticaloverflow) | Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer con |
| [getTextVerticalType()](#gettextverticaltype) | Gets and sets the text direction. The value of the property is TextVerticalType integer constant. |
| [getTopMarginPt()](#gettopmarginpt) | Returns the top margin in unit of Points |
| [hashCode()](#hashcode) |  |
| [isAutoMargin()](#isautomargin) | Indicates whether the margin of the text frame is automatic. |
| [isLockedText()](#islockedtext) | Indicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected. |
| [isTextWrapped()](#istextwrapped) | Gets and sets the text wrapped type of the shape which contains text. |
| [setAutoMargin()](#setautomargin) | Indicates whether the margin of the text frame is automatic. |
| [setAutoSize()](#setautosize) | Indicates if size of shape is adjusted automatically according to its content. |
| [setBottomMarginPt()](#setbottommarginpt) | Returns the bottom margin in unit of Points |
| [setLeftMarginPt()](#setleftmarginpt) | Returns the left margin in unit of Points |
| [setLockedText()](#setlockedtext) | Indicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected. |
| [setNumberOfColumns()](#setnumberofcolumns) | Gets and sets the number of columns of text in the bounding rectangle. |
| [setRightMarginPt()](#setrightmarginpt) | Returns the right margin in unit of Points |
| [setRotateTextWithShape()](#setrotatetextwithshape) | Indicates whether rotating text with shape. |
| [setRotationAngle()](#setrotationangle) | Gets and sets the rotation of the shape. |
| [setTextHorizontalOverflow()](#settexthorizontaloverflow) | Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer c |
| [setTextShapeType()](#settextshapetype) | Gets and set the transform type of text. The value of the property is AutoShapeType integer constant. |
| [setTextVerticalOverflow()](#settextverticaloverflow) | Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer con |
| [setTextVerticalType()](#settextverticaltype) | Gets and sets the text direction. The value of the property is TextVerticalType integer constant. |
| [setTextWrapped()](#settextwrapped) | Gets and sets the text wrapped type of the shape which contains text. |
| [setTopMarginPt()](#settopmarginpt) | Returns the top margin in unit of Points |

### equals(obj) {#equals}

Determines whether this instance has the same value as another specified ShapeTextAlignment object.

| Parameter | Type | Description |
| --- | --- | --- |
| obj | Object | The |

**Returns:** boolean — `boolean` 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.

### getAutoSize() {#getautosize}

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

### getBottomMarginPt() {#getbottommarginpt}

Returns the bottom margin in unit of Points

### getLeftMarginPt() {#getleftmarginpt}

Returns the left margin in unit of Points

### getNumberOfColumns() {#getnumberofcolumns}

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

### getRightMarginPt() {#getrightmarginpt}

Returns the right margin in unit of Points

### getRotateTextWithShape() {#getrotatetextwithshape}

Indicates whether rotating text with shape.

### getRotationAngle() {#getrotationangle}

Gets and sets the rotation of the shape.

### getTextHorizontalOverflow() {#gettexthorizontaloverflow}

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

### getTextShapeType() {#gettextshapetype}

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

### getTextVerticalOverflow() {#gettextverticaloverflow}

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

### getTextVerticalType() {#gettextverticaltype}

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

### getTopMarginPt() {#gettopmarginpt}

Returns the top margin in unit of Points

### hashCode() {#hashcode}

**Returns:** Number — `Number`

### isAutoMargin() {#isautomargin}

Indicates whether the margin of the text frame is automatic.

### isLockedText() {#islockedtext}

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

### isTextWrapped() {#istextwrapped}

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

### setAutoMargin() {#setautomargin}

Indicates whether the margin of the text frame is automatic.

### setAutoSize() {#setautosize}

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

### setBottomMarginPt() {#setbottommarginpt}

Returns the bottom margin in unit of Points

### setLeftMarginPt() {#setleftmarginpt}

Returns the left margin in unit of Points

### setLockedText() {#setlockedtext}

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

### setNumberOfColumns() {#setnumberofcolumns}

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

### setRightMarginPt() {#setrightmarginpt}

Returns the right margin in unit of Points

### setRotateTextWithShape() {#setrotatetextwithshape}

Indicates whether rotating text with shape.

### setRotationAngle() {#setrotationangle}

Gets and sets the rotation of the shape.

### setTextHorizontalOverflow() {#settexthorizontaloverflow}

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

### setTextShapeType() {#settextshapetype}

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

### setTextVerticalOverflow() {#settextverticaloverflow}

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

### setTextVerticalType() {#settextverticaltype}

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

### setTextWrapped() {#settextwrapped}

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

### setTopMarginPt() {#settopmarginpt}

Returns the top margin in unit of Points
