PortionCollection

PortionCollection

Overview

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

Represents a collection of portions.

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_enumerableAnyReadProvides an enumerable interface for iterating over the collection

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