IParagraphCollection

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

NameTypeAccessDescription
countintReadGets the number of elements actually contained in the collection.
as_i_slide_componentISlideComponentReadAllows to get base ISlideComponent interface.
as_i_enumerableAnyReadReturns IEnumerable interface.
slideIBaseSlideReadReturns the base slide.
as_i_presentation_componentIPresentationComponentReadAllows to get base IPresentationComponent interface.
presentationIPresentationReadReturns the presentation.

Methods

SignatureDescription
add(value)Inserts a paragraph into the collection; may return its index
add(value) → intCalls 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) → boolDeletes the specified paragraph and returns True if successful
__getitem__(index: int) → IParagraphCalls getitem(index) on this IParagraphCollection instance.

See Also

 English