IParagraphCollection
Overview
IParagraphCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: ISlideComponent, IPresentationComponent, ABC.
Represents a collection of a paragraphs.
This class declares 8 methods for IParagraphCollection objects in Python programs.
Available methods include: __getitem__, add, clear, 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, presentation, slide.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of elements actually contained in the collection. |
as_i_slide_component | ISlideComponent | Read | Allows to get base ISlideComponent interface. |
as_i_enumerable | Any | Read | Returns IEnumerable interface. |
slide | IBaseSlide | Read | Returns the base slide. |
as_i_presentation_component | IPresentationComponent | Read | Allows to get base IPresentationComponent interface. |
presentation | IPresentation | Read | Returns the presentation. |
Methods
| Signature | Description |
|---|---|
add(value) | Inserts a paragraph into the collection; may return its index |
add(value) → int | Calls add(value) on this IParagraphCollection instance. |
insert(index, value) | Places a paragraph at the specified index in the collection |
insert(index, value) | Calls insert(index, value) on this IParagraphCollection instance. |
clear() | Removes all paragraphs from the collection |
remove_at(index) | Deletes the paragraph at the given index |
remove(item) → bool | Deletes the specified paragraph and returns True if successful |
__getitem__(index: int) → IParagraph | Calls getitem(index) on this IParagraphCollection instance. |