FontSettingCollection

FontSettingCollection class

Represents the list of FontSetting.

class FontSettingCollection;

Methods

MethodDescription
get(number)Gets the FontSetting by the index.
getTextAlignment()Represents the alignment setting of the text body.
getTextParagraphs()Gets all paragraphs.
getText()Gets and sets the text of the shape.
setText(string)Gets and sets the text of the shape.
getHtmlString()Gets and sets the html string which contains data and some formats in this shape.
setHtmlString(string)Gets and sets the html string which contains data and some formats in this shape.
setWordArtStyle(PresetWordArtStyle)Sets the preset WordArt style.
getParagraphEnumerator()Gets the enumerator of the paragraphs.
appendText(string)Appends the text.
insertText(number, string)Insert index at the position.
replace(number, number, string)Replace the text.
replace(string, string)Replace the text.
deleteText(number, number)Delete some characters.
format(number, number, Font, StyleFlag)Format the text with font setting.
clear()Clear all setting.
equals(object)
getHashCode()
getCount()Gets the number of elements contained in.
isNull()Checks whether the implementation object is null.

get(number)

Gets the FontSetting by the index.

get(index: number) : FontSetting;

Parameters:

ParameterTypeDescription
indexnumberThe index.

Returns

FontSetting

getTextAlignment()

Represents the alignment setting of the text body.

getTextAlignment() : ShapeTextAlignment;

Returns

ShapeTextAlignment

getTextParagraphs()

Gets all paragraphs.

getTextParagraphs() : TextParagraphCollection;

Returns

TextParagraphCollection

getText()

Gets and sets the text of the shape.

getText() : string;

setText(string)

Gets and sets the text of the shape.

setText(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getHtmlString()

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

getHtmlString() : string;

setHtmlString(string)

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

setHtmlString(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

setWordArtStyle(PresetWordArtStyle)

Sets the preset WordArt style.

setWordArtStyle(style: PresetWordArtStyle) : void;

Parameters:

ParameterTypeDescription
stylePresetWordArtStyleThe preset WordArt style.

getParagraphEnumerator()

Gets the enumerator of the paragraphs.

getParagraphEnumerator() : TextParagraphEnumerator;

Returns

TextParagraphEnumerator

appendText(string)

Appends the text.

appendText(text: string) : void;

Parameters:

ParameterTypeDescription
textstringThe text.

insertText(number, string)

Insert index at the position.

insertText(index: number, text: string) : void;

Parameters:

ParameterTypeDescription
indexnumberThe start index.
textstringThe text.

replace(number, number, string)

Replace the text.

replace(index: number, count: number, text: string) : void;

Parameters:

ParameterTypeDescription
indexnumberThe start index.
countnumberThe count of characters.
textstringThe text.

replace(string, string)

Replace the text.

replace(oldValue: string, newValue: string) : void;

Parameters:

ParameterTypeDescription
oldValuestringThe old text.
newValuestringThe new text.

deleteText(number, number)

Delete some characters.

deleteText(index: number, count: number) : void;

Parameters:

ParameterTypeDescription
indexnumberThe start index.
countnumberThe count of characters.

format(number, number, Font, StyleFlag)

Format the text with font setting.

format(startIndex: number, length: number, font: Font, flag: StyleFlag) : void;

Parameters:

ParameterTypeDescription
startIndexnumberThe start index.
lengthnumberThe length.
fontFontThe font.
flagStyleFlagThe flags of the font.

clear()

Clear all setting.

clear() : void;

equals(object)

equals(obj: object) : boolean;

Parameters:

ParameterTypeDescription
objobject

getHashCode()

getHashCode() : number;

getCount()

Gets the number of elements contained in.

getCount() : number;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;