
## MsoTextFrame class

Represents the text frame in a Shape object.

```javascript
class MsoTextFrame;
```


## Properties

| Property | Type | Description |
| --- | --- | --- |
| [autoSize](#autoSize--)| boolean | Indicates if size of shape is adjusted automatically according to its content. |
| [isAutoMargin](#isAutoMargin--)| boolean | Indicates whether the margin is auto calculated. |
| [rotateTextWithShape](#rotateTextWithShape--)| boolean | Indicates whether rotating text with shape. |
| [leftMarginPt](#leftMarginPt--)| number | Returns the left margin in unit of Points |
| [rightMarginPt](#rightMarginPt--)| number | Returns the right margin in unit of Points |
| [topMarginPt](#topMarginPt--)| number | Returns the top margin in unit of Points |
| [bottomMarginPt](#bottomMarginPt--)| number | Returns the bottom margin in unit of Points |

## Methods

| Method | Description |
| --- | --- |
| [getAutoSize()](#getAutoSize--)| <b>@deprecated.</b> Please use the 'autoSize' property instead. Indicates if size of shape is adjusted automatically according to its content. |
| [setAutoSize(boolean)](#setAutoSize-boolean-)| <b>@deprecated.</b> Please use the 'autoSize' property instead. Indicates if size of shape is adjusted automatically according to its content. |
| [isAutoMargin()](#isAutoMargin--)| <b>@deprecated.</b> Please use the 'isAutoMargin' property instead. Indicates whether the margin is auto calculated. |
| [setIsAutoMargin(boolean)](#setIsAutoMargin-boolean-)| <b>@deprecated.</b> Please use the 'isAutoMargin' property instead. Indicates whether the margin is auto calculated. |
| [getRotateTextWithShape()](#getRotateTextWithShape--)| <b>@deprecated.</b> Please use the 'rotateTextWithShape' property instead. Indicates whether rotating text with shape. |
| [setRotateTextWithShape(boolean)](#setRotateTextWithShape-boolean-)| <b>@deprecated.</b> Please use the 'rotateTextWithShape' property instead. Indicates whether rotating text with shape. |
| [getLeftMarginPt()](#getLeftMarginPt--)| <b>@deprecated.</b> Please use the 'leftMarginPt' property instead. Returns the left margin in unit of Points |
| [setLeftMarginPt(number)](#setLeftMarginPt-number-)| <b>@deprecated.</b> Please use the 'leftMarginPt' property instead. Returns the left margin in unit of Points |
| [getRightMarginPt()](#getRightMarginPt--)| <b>@deprecated.</b> Please use the 'rightMarginPt' property instead. Returns the right margin in unit of Points |
| [setRightMarginPt(number)](#setRightMarginPt-number-)| <b>@deprecated.</b> Please use the 'rightMarginPt' property instead. Returns the right margin in unit of Points |
| [getTopMarginPt()](#getTopMarginPt--)| <b>@deprecated.</b> Please use the 'topMarginPt' property instead. Returns the top margin in unit of Points |
| [setTopMarginPt(number)](#setTopMarginPt-number-)| <b>@deprecated.</b> Please use the 'topMarginPt' property instead. Returns the top margin in unit of Points |
| [getBottomMarginPt()](#getBottomMarginPt--)| <b>@deprecated.</b> Please use the 'bottomMarginPt' property instead. Returns the bottom margin in unit of Points |
| [setBottomMarginPt(number)](#setBottomMarginPt-number-)| <b>@deprecated.</b> Please use the 'bottomMarginPt' property instead. Returns the bottom margin in unit of Points |
| [isNull()](#isNull--)| Checks whether the implementation object is null. |


### autoSize {#autoSize--}

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

```javascript
autoSize : boolean;
```


### isAutoMargin {#isAutoMargin--}

Indicates whether the margin is auto calculated.

```javascript
isAutoMargin : boolean;
```


### rotateTextWithShape {#rotateTextWithShape--}

Indicates whether rotating text with shape.

```javascript
rotateTextWithShape : boolean;
```


### leftMarginPt {#leftMarginPt--}

Returns the left margin in unit of Points

```javascript
leftMarginPt : number;
```


### rightMarginPt {#rightMarginPt--}

Returns the right margin in unit of Points

```javascript
rightMarginPt : number;
```


### topMarginPt {#topMarginPt--}

Returns the top margin in unit of Points

```javascript
topMarginPt : number;
```


### bottomMarginPt {#bottomMarginPt--}

Returns the bottom margin in unit of Points

```javascript
bottomMarginPt : number;
```


### getAutoSize() {#getAutoSize--}

<b>@deprecated.</b> Please use the 'autoSize' property instead. Indicates if size of shape is adjusted automatically according to its content.

```javascript
getAutoSize() : boolean;
```


### setAutoSize(boolean) {#setAutoSize-boolean-}

<b>@deprecated.</b> Please use the 'autoSize' property instead. Indicates if size of shape is adjusted automatically according to its content.

```javascript
setAutoSize(value: boolean) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | The value to set. |

### isAutoMargin() {#isAutoMargin--}

<b>@deprecated.</b> Please use the 'isAutoMargin' property instead. Indicates whether the margin is auto calculated.

```javascript
isAutoMargin() : boolean;
```


### setIsAutoMargin(boolean) {#setIsAutoMargin-boolean-}

<b>@deprecated.</b> Please use the 'isAutoMargin' property instead. Indicates whether the margin is auto calculated.

```javascript
setIsAutoMargin(value: boolean) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | The value to set. |

### getRotateTextWithShape() {#getRotateTextWithShape--}

<b>@deprecated.</b> Please use the 'rotateTextWithShape' property instead. Indicates whether rotating text with shape.

```javascript
getRotateTextWithShape() : boolean;
```


### setRotateTextWithShape(boolean) {#setRotateTextWithShape-boolean-}

<b>@deprecated.</b> Please use the 'rotateTextWithShape' property instead. Indicates whether rotating text with shape.

```javascript
setRotateTextWithShape(value: boolean) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | The value to set. |

### getLeftMarginPt() {#getLeftMarginPt--}

<b>@deprecated.</b> Please use the 'leftMarginPt' property instead. Returns the left margin in unit of Points

```javascript
getLeftMarginPt() : number;
```


### setLeftMarginPt(number) {#setLeftMarginPt-number-}

<b>@deprecated.</b> Please use the 'leftMarginPt' property instead. Returns the left margin in unit of Points

```javascript
setLeftMarginPt(value: number) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | number | The value to set. |

### getRightMarginPt() {#getRightMarginPt--}

<b>@deprecated.</b> Please use the 'rightMarginPt' property instead. Returns the right margin in unit of Points

```javascript
getRightMarginPt() : number;
```


### setRightMarginPt(number) {#setRightMarginPt-number-}

<b>@deprecated.</b> Please use the 'rightMarginPt' property instead. Returns the right margin in unit of Points

```javascript
setRightMarginPt(value: number) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | number | The value to set. |

### getTopMarginPt() {#getTopMarginPt--}

<b>@deprecated.</b> Please use the 'topMarginPt' property instead. Returns the top margin in unit of Points

```javascript
getTopMarginPt() : number;
```


### setTopMarginPt(number) {#setTopMarginPt-number-}

<b>@deprecated.</b> Please use the 'topMarginPt' property instead. Returns the top margin in unit of Points

```javascript
setTopMarginPt(value: number) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | number | The value to set. |

### getBottomMarginPt() {#getBottomMarginPt--}

<b>@deprecated.</b> Please use the 'bottomMarginPt' property instead. Returns the bottom margin in unit of Points

```javascript
getBottomMarginPt() : number;
```


### setBottomMarginPt(number) {#setBottomMarginPt-number-}

<b>@deprecated.</b> Please use the 'bottomMarginPt' property instead. Returns the bottom margin in unit of Points

```javascript
setBottomMarginPt(value: number) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | number | The value to set. |

### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```



