FontSettingCollection
FontSettingCollection class
Represents the list of FontSetting.
Methods
| Name | Description |
|---|---|
| add() | Reserved for internal use. |
| appendText(text) | Appends the text. |
| clear() | Clear all setting. |
| contains() | Reserved for internal use. |
| deleteText(index, count) | Delete some characters. |
| equals(obj) | |
| format(startIndex, length, font, flag) | Format the text with font setting. |
| get(index) | Gets the FontSetting by the index. |
| get() | Reserved for internal use. |
| getCount() | |
| getHtmlString() | Gets and sets the html string which contains data and some formats in this shape. |
| getParagraphEnumerator() | Gets the enumerator of the paragraphs. |
| getText() | Gets and sets the text of the shape. |
| getTextAlignment() | Represents the alignment setting of the text body. |
| getTextParagraphs() | Gets all paragraphs. |
| hashCode() | |
| indexOf() | Reserved for internal use. |
| insertText(index, text) | Insert index at the position. |
| iterator() | |
| removeAt() | |
| replace(index, count, text) | Replace the text. |
| replace(oldValue, newValue) | Replace the text. |
| setHtmlString() | Gets and sets the html string which contains data and some formats in this shape. |
| setText() | Gets and sets the text of the shape. |
| setWordArtStyle(style) | Sets the preset WordArt style. |
add()
Reserved for internal use.
appendText(text)
Appends the text.
| Parameter | Type | Description |
|---|---|---|
| text | String | The text. |
clear()
Clear all setting.
contains()
Reserved for internal use.
deleteText(index, count)
Delete some characters.
| Parameter | Type | Description |
|---|---|---|
| index | Number | The start index. |
| count | Number | The count of characters. |
equals(obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Object |
Returns: boolean — boolean
format(startIndex, length, font, flag)
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)
Gets the FontSetting by the index.
| Parameter | Type | Description |
|---|---|---|
| index | Number | The index. |
Returns: FontSetting — FontSetting
get()
Reserved for internal use.
getCount()
getHtmlString()
Gets and sets the html string which contains data and some formats in this shape.
getParagraphEnumerator()
Gets the enumerator of the paragraphs.
Returns: Iterator — Iterator
getText()
Gets and sets the text of the shape.
getTextAlignment()
Represents the alignment setting of the text body.
getTextParagraphs()
Gets all paragraphs.
hashCode()
Returns: Number — Number
indexOf()
Reserved for internal use.
insertText(index, text)
Insert index at the position.
| Parameter | Type | Description |
|---|---|---|
| index | Number | The start index. |
| text | String | The text. |
iterator()
removeAt()
replace(index, count, text)
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 the text.
| Parameter | Type | Description |
|---|---|---|
| oldValue | String | The old text. |
| newValue | String | The new text. |
setHtmlString()
Gets and sets the html string which contains data and some formats in this shape.
setText()
Gets and sets the text of the shape.
setWordArtStyle(style)
Sets the preset WordArt style.
| Parameter | Type | Description |
|---|---|---|
| style | Number | PresetWordArtStyle |