
## add(self, type) {#aspose.cells.charts.TrendlineType}

Adds a [`Trendline`](/cells/python-net/aspose.cells.charts/trendline) object to this collection with specified type.


### Returns 


[`Trendline`](/cells/python-net/aspose.cells.charts/trendline) object index.


```python

def add(self, type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| type | aspose.cells.charts.TrendlineType | Trendline type. |


## add(self, type, name) {#aspose.cells.charts.TrendlineType-System.String}

Adds a [`Trendline`](/cells/python-net/aspose.cells.charts/trendline) object to this collection with specified type and name.


### Returns 


[`Trendline`](/cells/python-net/aspose.cells.charts/trendline) object index.


```python

def add(self, type, name):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| type | aspose.cells.charts.TrendlineType | Trendline type. |
| name | System.String | Trendline name. |



### See Also
* module [`aspose.cells.charts`](../../)
* class [`Trendline`](/cells/python-net/aspose.cells.charts/trendline)
* class [`TrendlineCollection`](/cells/python-net/aspose.cells.charts/trendlinecollection)
