PortionCollection
Overview
PortionCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: BaseCollection, IPortionCollection.
Represents a collection of portions.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of elements actually contained in the collection. |
is_read_only | bool | Read | Gets a value indicating whether the is read-only. |
as_i_enumerable | Any | Read | Provides an enumerable interface for iterating over the collection |
Methods
| Signature | Description |
|---|---|
add(value) | Adds a Portion to the collection |
index_of(item) → int | Returns 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) → bool | Indicates whether the collection includes the specified Portion |
remove(item) → bool | Removes the first occurrence of the specified Portion and returns true if removed |
remove_at(index) | Removes the Portion at the specified index |