Methods

add()

Reserved for internal use.

appendText(text)

Appends the text.

Parameter

Name Type Optional Description

text

String

 

The text.

clear()

Clear all setting.

contains()

Reserved for internal use.

deleteText(index, count)

Delete some characters.

Parameters

Name Type Optional Description

index

Number

 

The start index.

count

Number

 

The count of characters.

equals(obj) → boolean

Parameter

Name Type Optional Description

obj

Object

 

Returns

boolean 

format(startIndex, length, font, flag)

Format the text with font setting.

Parameters

Name Type Optional Description

startIndex

Number

 

The start index.

length

Number

 

The length.

font

Font

 

The font.

flag

StyleFlag

 

The flags of the font.

get(index) → FontSetting

Gets the FontSetting by the index.

Parameter

Name Type Optional Description

index

Number

 

The index.

Returns

FontSetting 

get()

Reserved for internal use.

getCount()

getHtmlString()

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

getParagraphEnumerator() → Iterator

Gets the enumerator of the paragraphs.

Returns

Iterator 

getText()

Gets and sets the text of the shape.

getTextAlignment()

Represents the alignment setting of the text body.

getTextParagraphs()

Gets all paragraphs.

hashCode() → Number

Returns

Number 

indexOf()

Reserved for internal use.

insertText(index, text)

Insert index at the position.

Parameters

Name Type Optional Description

index

Number

 

The start index.

text

String

 

The text.

iterator()

removeAt()

replace(index, count, text)

Replace the text.

Parameters

Name Type Optional Description

index

Number

 

The start index.

count

Number

 

The count of characters.

text

String

 

The text.

replace(oldValue, newValue)

Replace the text.

Parameters

Name Type Optional 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

Name Type Optional Description

style

Number

 

PresetWordArtStyle