TextParagraphCollection

TextParagraphCollection class

Represents all text paragraph.

class TextParagraphCollection implements Iterable<TextParagraph>;

Properties

PropertyTypeDescription
countnumberReadonly. Gets the count of text paragraphs.

Methods

MethodDescription
get(number)Gets the TextParagraph object at specific index.
getCount()@deprecated. Please use the ‘count’ property instead. Gets the count of text paragraphs.
getEnumerator()Gets the enumerator of the paragraphs.
isNull()Checks whether the implementation object is null.

[Symbol.iterator](): Iterator<TextParagraph>

Returns an iterator over the items in the collection. Enables use of for...of, spread syntax, and Array.from().

count

Readonly. Gets the count of text paragraphs.

count : number;

get(number)

Gets the TextParagraph object at specific index.

get(index: number) : TextParagraph;

Parameters:

ParameterTypeDescription
indexnumberThe index.

Returns

TextParagraph

getCount()

@deprecated. Please use the ‘count’ property instead. Gets the count of text paragraphs.

getCount() : number;

getEnumerator()

Gets the enumerator of the paragraphs.

getEnumerator() : TextParagraphEnumerator;

Returns

TextParagraphEnumerator

isNull()

Checks whether the implementation object is null.

isNull() : boolean;