
## TableStyleElementCollection class

Represents all elements of the table style.

```javascript
class TableStyleElementCollection implements Iterable<TableStyleElement>;
```


## Methods

| Method | Description |
| --- | --- |
| [get(number)](#get-number-)| Gets an element of the table style by the index. |
| [get(TableStyleElementType)](#get-tablestyleelementtype-)| Gets the element of the table style by the element type. |
| [add(TableStyleElementType)](#add-tablestyleelementtype-)| Adds an element. |
| [getCount()](#getCount--)| <b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in. |
| [isNull()](#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) {#get-number-}

Gets an element of the table style by the index.

```javascript
get(index: number) : TableStyleElement;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The index. |

**Returns**

Returns [TableStyleElement](../tablestyleelement/) object

### get(TableStyleElementType) {#get-tablestyleelementtype-}

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

```javascript
get(type: TableStyleElementType) : TableStyleElement;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | [TableStyleElementType](../tablestyleelementtype/) | The element type. |

**Returns**

Returns [TableStyleElement](../tablestyleelement/) object

### add(TableStyleElementType) {#add-tablestyleelementtype-}

Adds an element.

```javascript
add(type: TableStyleElementType) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | [TableStyleElementType](../tablestyleelementtype/) | The type of the element |

**Returns**

Returns the index of the element in the list.

### getCount() {#getCount--}

<b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in.

```javascript
getCount() : number;
```


### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```



