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

# ParagraphCollection

## Overview

`ParagraphCollection` is a class in Aspose.Slides FOSS for Python.
Inherits from: `BaseCollection`, `IParagraphCollection`, `ISlideComponent`.

Represents a collection of a paragraphs.

This class provides 7 methods for working with ParagraphCollection objects in Python programs.
Available methods include: `add`, `clear`, `contains`, `index_of`, `insert`, `remove`, `remove_at`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `as_i_enumerable`, `as_i_presentation_component`, `as_i_slide_component`, `count`, `is_read_only`, `length`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `count` | `int` | Read | Gets the number of elements actually contained in the collection. |
| `is_read_only` | `bool` | Read | Gets a value indicating whether the is read-only. |
| `as_i_slide_component` | `ISlideComponent` | Read | Gets the as i slide component. |
| `as_i_enumerable` | `Any` | Read | Gets the as i enumerable. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `as_i_presentation_component` | `IPresentationComponent` | Read | Gets the as i presentation component. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |
| `length` | `int` | Read | Returns the number of elements. |

## Methods

| Signature | Description |
|-----------|-------------|
| `add()` | Appends a new paragraph to the collection |
| `insert()` | Inserts a paragraph at a specified index |
| `index_of(item)` → `int` | Returns the zero‑based index of the given paragraph, or -1 if not found |
| `clear()` |  |
| `contains(item)` → `bool` | Checks whether the specified paragraph exists in the collection |
| `remove_at(index)` |  |
| `remove(item)` → `bool` |  |

## See Also

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