IPortionCollection
Overview
IPortionCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: ABC.
Represents a collection of a portions.
This class declares 8 methods for IPortionCollection objects in Python programs.
Available methods include: __getitem__, add, clear, contains, index_of, 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, count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of elements actually contained in the collection. |
as_i_enumerable | Any | Read | Returns IEnumerable interface. |
Methods
| Signature | Description |
|---|---|
add(value) | Adds the given portion to the collection |
index_of(item) → int | Calls index_of(item) on this IPortionCollection instance. |
insert(index, value) | Inserts the given portion at the specified index |
clear() | Removes all portions from the collection |
contains(item) → bool | Returns True if the collection includes the specified portion |
remove(item) → bool | Deletes the first occurrence of the specified portion and returns success |
remove_at(index) | Removes the portion at the given index |
__getitem__(index: int) → IPortion | Calls getitem(index) on this IPortionCollection instance. |