
## TrendlineCollection class

Represents a collection of all the Trendline objects for the specified data series.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Count](#count) | int |  |
| [Item (int)](#itemint) | Trendline | Gets a Trendline object by its index. |

## Methods

| Name | Description |
| --- | --- |
| [add](#add) | Adds a Trendline object to this collection with specified type. |
| [clear](#clear) |  |
| [removeAt](#removeat) |  |
| [iterator](#iterator) |  |
| [get](#get) | Reserved for internal use. |
| [contains](#contains) | Reserved for internal use. |
| [indexOf](#indexof) | Reserved for internal use. |

### TrendlineCollection.Count property {#count}

**Type:** int

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

Gets a Trendline object by its index.

**Type:** Trendline

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

Adds a Trendline object to this collection with specified type.

| Parameter | Type | Description |
| --- | --- | --- |
| type | int | A TrendlineType value. Trendline type. |

**Returns:** Trendline object index.

---

### add(type, name) (2 of 3) {#add-1}

Adds a Trendline object to this collection with specified type and name.

| Parameter | Type | Description |
| --- | --- | --- |
| type | int | A TrendlineType value. Trendline type. |
| name | String | Trendline name. |

**Returns:** Trendline object index.

---

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

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.
