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

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
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()
contains(item)boolChecks whether the specified paragraph exists in the collection
remove_at(index)
remove(item)bool

See Also