ParagraphCollection
Overview
ParagraphCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: BaseCollection, IParagraphCollection, ISlideComponent, and 1 more.
Represents a collection of a paragraphs.
This class declares 12 methods for ParagraphCollection objects in Python programs.
Available methods include: __contains__, __getitem__, __iter__, add, clear, contains, index_of, insert, remove, remove_at.
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 |
|---|---|
__iter__() | Calls iter on this ParagraphCollection instance. |
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() | Calls clear on this ParagraphCollection instance. |
contains(item) → bool | Checks whether the specified paragraph exists in the collection |
remove_at(index) | Calls remove_at(index) on this ParagraphCollection instance. |
remove(item) → bool | Calls remove(item) on this ParagraphCollection instance. |
__getitem__(index: int) → Paragraph | Calls getitem(index) on this ParagraphCollection instance. |
__contains__(item) → bool | Calls contains(item) on this ParagraphCollection instance. |
add(value) | Calls add(value) on this ParagraphCollection instance. |
insert(index, value) | Calls insert(index, value) on this ParagraphCollection instance. |