FontSettingCollection

FontSettingCollection class

Represents the list of FontSetting.

Methods

NameDescription
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.

ParameterTypeDescription
textStringThe text.

clear()

Clear all setting.

contains()

Reserved for internal use.

deleteText(index, count)

Delete some characters.

ParameterTypeDescription
indexNumberThe start index.
countNumberThe count of characters.

equals(obj)

ParameterTypeDescription
objObject

Returns: boolean — boolean

format(startIndex, length, font, flag)

Format the text with font setting.

ParameterTypeDescription
startIndexNumberThe start index.
lengthNumberThe length.
fontFontThe font.
flagStyleFlagThe flags of the font.

get(index)

Gets the FontSetting by the index.

ParameterTypeDescription
indexNumberThe 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.

ParameterTypeDescription
indexNumberThe start index.
textStringThe text.

iterator()

removeAt()

replace(index, count, text)

Replace the text.

ParameterTypeDescription
indexNumberThe start index.
countNumberThe count of characters.
textStringThe text.

replace(oldValue, newValue)

Replace the text.

ParameterTypeDescription
oldValueStringThe old text.
newValueStringThe 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.

ParameterTypeDescription
styleNumberPresetWordArtStyle