# Class: TextAnno

## TextAnno()

#### new TextAnno()

Source:
  - TextAnno.js, line 12

### Methods

#### (async, static) createObj() → {Promise.<TextAnno>}

构造一个新的 TextAnno 对象

Source:
  - TextAnno.js, line 33

##### Returns:

Type
  Promise.<TextAnno>

#### (async, static) getAnnType() → {Promise}

获取注记类型

Source:
  - TextAnno.js, line 62

##### Returns:

注记类型

Type
  Promise

#### (async, static) getText() → {Promise}

获取文本注记文本内容

Source:
  - TextAnno.js, line 88

##### Returns:

文本内容

Type
  Promise

#### (async, static) getTextAnnInfo() → {Promise.<TextAnnInfo>}

获取文本注记文本格式化信息

Source:
  - TextAnno.js, line 115

##### Returns:

文本格式化信息

Type
  Promise.<TextAnnInfo>

#### (async, static) getType() → {Promise}

获取几何对象类型

Source:
  - TextAnno.js, line 49

##### Returns:

几何对象类型

Type
  Promise

#### (async, static) isEmpty() → {Promise}

判断几何注记是否为空

Source:
  - TextAnno.js, line 75

##### Returns:

为空返回true，不为空返回false

Type
  Promise

#### (async, static) setText(text) → {Promise.<void>}

设置文本注记文本内容

##### Parameters:

Name | Type | Description
--- | --- | ---
`text` |  | 文本内容

Source:
  - TextAnno.js, line 102

##### Returns:

Type
  Promise.<void>

#### (async, static) setTextAnnInfo(textInfo) → {Promise.<void>}

设置文本注记文本格式化信息

##### Parameters:

Name | Type | Description
--- | --- | ---
`textInfo` |  | 文本格式化信息

Source:
  - TextAnno.js, line 132

##### Returns:

Type
  Promise.<void>