PortionCollection

PortionCollection

Overview

PortionCollection is a class in Aspose.Slides FOSS for Python. Inherits from: BaseCollection, IPortionCollection.

Represents a collection of portions.

This class provides 7 methods for working with PortionCollection 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, count, is_read_only, length.

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_enumerableAnyReadGets the as i enumerable.
lengthintReadReturns the number of elements.

Methods

SignatureDescription
add(value)Adds a Portion to the collection
index_of(item) → intReturns the zero‑based index of the specified Portion, or -1 if absent
insert(index, value)Inserts a Portion at the given index, shifting subsequent items
clear()Removes all Portion objects from the collection
contains(item) → boolIndicates whether the collection includes the specified Portion
remove(item) → boolRemoves the first occurrence of the specified Portion and returns true if removed
remove_at(index)Removes the Portion at the specified index

See Also

 English