TableStyleElementCollection

TableStyleElementCollection class

Represents all elements of the table style.

class TableStyleElementCollection implements Iterable<TableStyleElement>;

Methods

MethodDescription
get(number)Gets an element of the table style by the index.
get(TableStyleElementType)Gets the element of the table style by the element type.
add(TableStyleElementType)Adds an element.
getCount()@deprecated. Please use the ‘count’ property instead. Gets the number of elements contained in.
isNull()Checks whether the implementation object is null.

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

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

get(number)

Gets an element of the table style by the index.

get(index: number) : TableStyleElement;

Parameters:

ParameterTypeDescription
indexnumberThe index.

Returns

Returns TableStyleElement object

get(TableStyleElementType)

Gets the element of the table style by the element type.

get(type: TableStyleElementType) : TableStyleElement;

Parameters:

ParameterTypeDescription
typeTableStyleElementTypeThe element type.

Returns

Returns TableStyleElement object

add(TableStyleElementType)

Adds an element.

add(type: TableStyleElementType) : number;

Parameters:

ParameterTypeDescription
typeTableStyleElementTypeThe type of the element

Returns

Returns the index of the element in the list.

getCount()

@deprecated. Please use the ‘count’ property instead. Gets the number of elements contained in.

getCount() : number;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;