
## TableStyleElementCollection class

Represents all elements of the table style.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Count](#count) | Number |  |
| [Item (int)](#itemint) | TableStyleElement | Gets an element of the table style by the index. |
| [Item ByTableStyleElementType(int)](#itembytablestyleelementtypeint) | TableStyleElement | Gets the element of the table style by the element type. |

## Methods

| Name | Description |
| --- | --- |
| [getTableStyleElementWithIndex](#gettablestyleelementwithindex) | Gets an element of the table style by the index.

NOTE: This member is now obsolete. Instead, please use Aspose.Cells.Ta |
| [getTableStyleElementWithType](#gettablestyleelementwithtype) | Gets the element of the table style by the element type.

NOTE: This member is now obsolete. Instead, please use Aspose. |
| [add](#add) | Adds an element. |
| [clear](#clear) |  |
| [removeAt](#removeat) |  |
| [iterator](#iterator) |  |
| [get](#get) | Reserved for internal use. |
| [contains](#contains) | Reserved for internal use. |
| [indexOf](#indexof) | Reserved for internal use. |

### TableStyleElementCollection.Count property {#count}

**Type:** Number

### TableStyleElementCollection.Item (int) property {#itemint}

Gets an element of the table style by the index.

**Type:** TableStyleElement

### TableStyleElementCollection.Item ByTableStyleElementType(int) property {#itembytablestyleelementtypeint}

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

**Type:** TableStyleElement

### getTableStyleElementWithIndex(index) {#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(type) {#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.

### add(type) (1 of 2) {#add}

Adds an element.

| Parameter | Type | Description |
| --- | --- | --- |
| type | Number | A TableStyleElementType value. The type of the element |

**Returns:** Returns the index of the element in the list.

---

### add(value) (2 of 2) {#add-1}

Reserved for internal use.

### clear() {#clear}

### removeAt(index) {#removeat}

### iterator() {#iterator}

### get(index) {#get}

Reserved for internal use.

### contains(value) {#contains}

Reserved for internal use.

### indexOf(value) {#indexof}

Reserved for internal use.
