
## TextBoxOptions class

Represents the text options of the shape

```javascript
class TextBoxOptions;
```


## Properties

| Property | Type | Description |
| --- | --- | --- |
| [shapeTextVerticalAlignment](#shapeTextVerticalAlignment--)| ShapeTextVerticalAlignmentType | It corresponds to "Format Shape - Text Options - Text Box - Vertical Alignment" in Excel. |
| [resizeToFitText](#resizeToFitText--)| boolean | Indicates whether to resize the shape to fit the text |
| [shapeTextDirection](#shapeTextDirection--)| TextVerticalType | Gets or sets the text display direction within a given text body. It corresponds to "Format Shape - Text Options - Text Box - Text direction" in Excel |
| [leftMarginPt](#leftMarginPt--)| number | Gets and sets the left margin in unit of Points. |
| [rightMarginPt](#rightMarginPt--)| number | Gets and sets the right margin in unit of Points. |
| [topMarginPt](#topMarginPt--)| number | Gets and sets the top margin in unit of Points. |
| [bottomMarginPt](#bottomMarginPt--)| number | Returns the bottom margin in unit of Points |
| [allowTextToOverflow](#allowTextToOverflow--)| boolean | Whether allow text to overflow shape. |
| [wrapTextInShape](#wrapTextInShape--)| boolean | Specifies text wrapping within a shape. False - No wrapping will occur on text body. True - Wrapping will occur on text body. |


### shapeTextVerticalAlignment {#shapeTextVerticalAlignment--}

It corresponds to "Format Shape - Text Options - Text Box - Vertical Alignment" in Excel.

```javascript
shapeTextVerticalAlignment : ShapeTextVerticalAlignmentType;
```


### resizeToFitText {#resizeToFitText--}

Indicates whether to resize the shape to fit the text

```javascript
resizeToFitText : boolean;
```


### shapeTextDirection {#shapeTextDirection--}

Gets or sets the text display direction within a given text body. It corresponds to "Format Shape - Text Options - Text Box - Text direction" in Excel

```javascript
shapeTextDirection : TextVerticalType;
```


### leftMarginPt {#leftMarginPt--}

Gets and sets the left margin in unit of Points.

```javascript
leftMarginPt : number;
```


### rightMarginPt {#rightMarginPt--}

Gets and sets the right margin in unit of Points.

```javascript
rightMarginPt : number;
```


### topMarginPt {#topMarginPt--}

Gets and sets the top margin in unit of Points.

```javascript
topMarginPt : number;
```


### bottomMarginPt {#bottomMarginPt--}

Returns the bottom margin in unit of Points

```javascript
bottomMarginPt : number;
```


### allowTextToOverflow {#allowTextToOverflow--}

Whether allow text to overflow shape.

```javascript
allowTextToOverflow : boolean;
```


### wrapTextInShape {#wrapTextInShape--}

Specifies text wrapping within a shape. False - No wrapping will occur on text body. True - Wrapping will occur on text body.

```javascript
wrapTextInShape : boolean;
```



