
## FontSettingCollection class

Represents the list of FontSetting.

## Methods

| Name | Description |
| --- | --- |
| [add()](#add) | Reserved for internal use. |
| [appendText(text)](#appendtext) | Appends the text. |
| [clear()](#clear) | Clear all setting. |
| [contains()](#contains) | Reserved for internal use. |
| [deleteText(index, count)](#deletetext) | Delete some characters. |
| [equals(obj)](#equals) |  |
| [format(startIndex, length, font, flag)](#format) | Format the text with font setting. |
| [get(index)](#get) | Gets the FontSetting by the index. |
| [get()](#get-1) | Reserved for internal use. |
| [getCount()](#getcount) |  |
| [getHtmlString()](#gethtmlstring) | Gets and sets the html string which contains data and some formats in this shape. |
| [getParagraphEnumerator()](#getparagraphenumerator) | Gets the enumerator of the paragraphs. |
| [getText()](#gettext) | Gets and sets the text of the shape. |
| [getTextAlignment()](#gettextalignment) | Represents the alignment setting of the text body. |
| [getTextParagraphs()](#gettextparagraphs) | Gets all paragraphs. |
| [hashCode()](#hashcode) |  |
| [indexOf()](#indexof) | Reserved for internal use. |
| [insertText(index, text)](#inserttext) | Insert index at the position. |
| [iterator()](#iterator) |  |
| [removeAt()](#removeat) |  |
| [replace(index, count, text)](#replace) | Replace the text. |
| [replace(oldValue, newValue)](#replace-1) | Replace the text. |
| [setHtmlString()](#sethtmlstring) | Gets and sets the html string which contains data and some formats in this shape. |
| [setText()](#settext) | Gets and sets the text of the shape. |
| [setWordArtStyle(style)](#setwordartstyle) | Sets the preset WordArt style. |

### add() {#add}

Reserved for internal use.

### appendText(text) {#appendtext}

Appends the text.

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text. |

### clear() {#clear}

Clear all setting.

### contains() {#contains}

Reserved for internal use.

### deleteText(index, count) {#deletetext}

Delete some characters.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The start index. |
| count | Number | The count of characters. |

### equals(obj) {#equals}

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

**Returns:** boolean — `boolean`

### format(startIndex, length, font, flag) {#format}

Format the text with font setting.

| Parameter | Type | Description |
| --- | --- | --- |
| startIndex | Number | The start index. |
| length | Number | The length. |
| font | Font | The font. |
| flag | StyleFlag | The flags of the font. |

### get(index) {#get}

Gets the FontSetting by the index.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The index. |

**Returns:** FontSetting — `FontSetting`

### get() {#get-1}

Reserved for internal use.

### getCount() {#getcount}

### getHtmlString() {#gethtmlstring}

Gets and sets the html string which contains data and some formats in this shape.

### getParagraphEnumerator() {#getparagraphenumerator}

Gets the enumerator of the paragraphs.

**Returns:** Iterator — `Iterator`

### getText() {#gettext}

Gets and sets the text of the shape.

### getTextAlignment() {#gettextalignment}

Represents the alignment setting of the text body.

### getTextParagraphs() {#gettextparagraphs}

Gets all paragraphs.

### hashCode() {#hashcode}

**Returns:** Number — `Number`

### indexOf() {#indexof}

Reserved for internal use.

### insertText(index, text) {#inserttext}

Insert index at the position.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The start index. |
| text | String | The text. |

### iterator() {#iterator}

### removeAt() {#removeat}

### replace(index, count, text) {#replace}

Replace the text.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The start index. |
| count | Number | The count of characters. |
| text | String | The text. |

### replace(oldValue, newValue) {#replace-1}

Replace the text.

| Parameter | Type | Description |
| --- | --- | --- |
| oldValue | String | The old text. |
| newValue | String | The new text. |

### setHtmlString() {#sethtmlstring}

Gets and sets the html string which contains data and some formats in this shape.

### setText() {#settext}

Gets and sets the text of the shape.

### setWordArtStyle(style) {#setwordartstyle}

Sets the preset WordArt style.

| Parameter | Type | Description |
| --- | --- | --- |
| style | Number | PresetWordArtStyle |
