
## TableStyleElementCollection class

Represents all elements of the table style.

## Methods

| Name | Description |
| --- | --- |
| [add(type)](#add) | Adds an element. |
| [add()](#add-1) | Reserved for internal use. |
| [clear()](#clear) |  |
| [contains()](#contains) | Reserved for internal use. |
| [get(index)](#get) | Gets an element of the table style by the index. |
| [get()](#get-1) | Reserved for internal use. |
| [getByTableStyleElementType(type)](#getbytablestyleelementtype) | Gets the element of the table style by the element type. |
| [getCount()](#getcount) |  |
| [getTableStyleElementWithIndex()](#gettablestyleelementwithindex) | Gets an element of the table style by the index. NOTE: This member is now obsolete. Instead, please use Aspose.Cells.Tab |
| [getTableStyleElementWithType()](#gettablestyleelementwithtype) | Gets the element of the table style by the element type. NOTE: This member is now obsolete. Instead, please use Aspose.C |
| [indexOf()](#indexof) | Reserved for internal use. |
| [iterator()](#iterator) |  |
| [removeAt()](#removeat) |  |

### add(type) {#add}

Adds an element.

| Parameter | Type | Description |
| --- | --- | --- |
| type | Number | TableStyleElementType |

**Returns:** Number — `Number` Returns the index of the element in the list.

### add() {#add-1}

Reserved for internal use.

### clear() {#clear}

### contains() {#contains}

Reserved for internal use.

### get(index) {#get}

Gets an element of the table style by the index.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The index. |

**Returns:** TableStyleElement — `TableStyleElement` Returns TableStyleElement object

### get() {#get-1}

Reserved for internal use.

### getByTableStyleElementType(type) {#getbytablestyleelementtype}

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

| Parameter | Type | Description |
| --- | --- | --- |
| type | Number | TableStyleElementType |

**Returns:** TableStyleElement — `TableStyleElement` Returns TableStyleElement object

### getCount() {#getcount}

### getTableStyleElementWithIndex() {#gettablestyleelementwithindex}

Gets an element of the table style by the index. NOTE: This member is now obsolete. Instead, please use Aspose.Cells.Tables.TableStyleElementCollection.this[int index] property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced.

### getTableStyleElementWithType() {#gettablestyleelementwithtype}

Gets the element of the table style by the element type. NOTE: This member is now obsolete. Instead, please use Aspose.Cells.Tables.TableStyleElementCollection.this[TableStyleElementType type] property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced.

### indexOf() {#indexof}

Reserved for internal use.

### iterator() {#iterator}

### removeAt() {#removeat}
