---
Product: Aspose.Slides
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/python/TrendlineCollection
---

# TrendlineCollection

## Overview

`TrendlineCollection` is a class in Aspose.Slides FOSS for Python.
Inherits from: `ITrendlineCollection`.

Represents a collection of Trendline objects for a chart series.

This class provides 2 methods for working with TrendlineCollection objects in Python programs.
Available methods include: `add`, `remove`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `count`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `count` | `int` | Read | Gets the count. |

## Methods

| Signature | Description |
|-----------|-------------|
| `add(trendline_type: TrendlineType)` → `ITrendline` | Add a new trendline of the specified type. |
| `remove(value: Trendline)` | Remove a trendline from the collection. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)