ParagraphCollection
Overview
ParagraphCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: BaseCollection, IParagraphCollection, ISlideComponent.
Represents a collection of a paragraphs.
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 | |
as_i_enumerable | Any | Read | |
slide | IBaseSlide | Read | References the slide that owns this paragraph collection |
as_i_presentation_component | IPresentationComponent | Read | Returns the collection as an IPresentationComponent |
presentation | IPresentation | Read | Gets the presentation that contains the slide owning this collection |
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 |