FontSettingCollection
Contents
[
Hide
]FontSettingCollection class
Represents the list of FontSetting .
Properties
| Name | Type | Description |
|---|---|---|
| TextAlignment | ShapeTextAlignment | Represents the alignment setting of the text body. |
| TextParagraphs | TextParagraphCollection | Gets all paragraphs. |
| Text | String | Gets and sets the text of the shape. |
| HtmlString | String | Gets and sets the html string which contains data and some formats in this shape. |
| Count | int | |
| Item (int) | FontSetting | Gets the FontSetting by the index. |
Methods
| Name | Description |
|---|---|
| setWordArtStyle | Sets the preset WordArt style. |
| getParagraphEnumerator | Gets the enumerator of the paragraphs. |
| appendText | Appends the text. |
| insertText | Insert index at the position. |
| replace | Replace the text. |
| deleteText | Delete some characters. |
| format | Format the text with font setting. |
| clear | Clear all setting. |
| equals | |
| hashCode | |
| removeAt | |
| iterator | |
| get | Reserved for internal use. |
| contains | Reserved for internal use. |
| add | Reserved for internal use. |
| indexOf | Reserved for internal use. |
FontSettingCollection.TextAlignment property
Represents the alignment setting of the text body.
Type: ShapeTextAlignment
FontSettingCollection.TextParagraphs property
Gets all paragraphs.
Type: TextParagraphCollection
FontSettingCollection.Text property
Gets and sets the text of the shape.
Type: String
FontSettingCollection.HtmlString property
Gets and sets the html string which contains data and some formats in this shape.
Type: String
FontSettingCollection.Count property
Type: int
FontSettingCollection.Item (int) property
Gets the FontSetting by the index.
Type: FontSetting
setWordArtStyle(style)
Sets the preset WordArt style.
| Parameter | Type | Description |
|---|---|---|
| style | int | A PresetWordArtStyle value. The preset WordArt style. |
getParagraphEnumerator()
Gets the enumerator of the paragraphs.
appendText(text)
Appends the text.
| Parameter | Type | Description |
|---|---|---|
| text | String | The text. |
insertText(index, text)
Insert index at the position.
| Parameter | Type | Description |
|---|---|---|
| index | int | The start index. |
| text | String | The text. |
replace(index, count, text) (1 of 2)
Replace the text.
| Parameter | Type | Description |
|---|---|---|
| index | int | The start index. |
| count | int | The count of characters. |
| text | String | The text. |
replace(oldValue, newValue) (2 of 2)
Replace the text.
| Parameter | Type | Description |
|---|---|---|
| oldValue | String | The old text. |
| newValue | String | The new text. |
deleteText(index, count)
Delete some characters.
| Parameter | Type | Description |
|---|---|---|
| index | int | The start index. |
| count | int | The count of characters. |
format(startIndex, length, font, flag)
Format the text with font setting.
| Parameter | Type | Description |
|---|---|---|
| startIndex | int | The start index. |
| length | int | The length. |
| font | Font | The font. |
| flag | StyleFlag | The flags of the font. |
clear()
Clear all setting.
equals(obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Object |
hashCode()
removeAt(index)
iterator()
get(index)
Reserved for internal use.
contains(value)
Reserved for internal use.
add(value)
Reserved for internal use.
indexOf(value)
Reserved for internal use.