ParagraphCollection

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

NameTypeAccessDescription
countintReadGets the number of elements actually contained in the collection.
is_read_onlyboolReadGets a value indicating whether the is read-only.
as_i_slide_componentISlideComponentReadGets the as i slide component.
as_i_enumerableAnyReadGets the as i enumerable.
slideIBaseSlideReadGets the slide.
as_i_presentation_componentIPresentationComponentReadGets the as i presentation component.
presentationIPresentationReadGets the presentation.
lengthintReadReturns the number of elements.

Methods

SignatureDescription
__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) → intReturns the zero‑based index of the given paragraph, or -1 if not found
clear()Calls clear on this ParagraphCollection instance.
contains(item) → boolChecks whether the specified paragraph exists in the collection
remove_at(index)Calls remove_at(index) on this ParagraphCollection instance.
remove(item) → boolCalls remove(item) on this ParagraphCollection instance.
__getitem__(index: int) → ParagraphCalls getitem(index) on this ParagraphCollection instance.
__contains__(item) → boolCalls 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.

See Also

 English