IPortionCollection

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

NameTypeAccessDescription
countintReadGets the number of elements actually contained in the collection.
as_i_enumerableAnyReadReturns IEnumerable interface.

Methods

SignatureDescription
add(value)Adds the given portion to the collection
index_of(item) → intCalls 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) → boolReturns True if the collection includes the specified portion
remove(item) → boolDeletes the first occurrence of the specified portion and returns success
remove_at(index)Removes the portion at the given index
__getitem__(index: int) → IPortionCalls getitem(index) on this IPortionCollection instance.

See Also

 English