BehaviorCollection

BehaviorCollection

Overview

BehaviorCollection is a class in Aspose.Slides FOSS for Python. Inherits from: BaseCollection, IBehaviorCollection.

Represents collection of behavior effects.

This class declares 12 methods for BehaviorCollection objects in Python programs. Available methods include: __contains__, __getitem__, __iter__, __len__, add, clear, contains, copy_to, 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, is_read_only, length.

Properties

NameTypeAccessDescription
countintReadGets the count.
is_read_onlyboolReadGets the is read only.
as_i_enumerableAnyReadGets the as i enumerable.
lengthintReadReturns the number of elements.

Methods

SignatureDescription
add(item)Adds the specified behavior item to the collection
index_of(item) → intReturns the zero‑based index of the given behavior item
insert(index, item)Inserts a behavior item at the specified index in the collection
copy_to(array, array_index)Copies the collection elements into the provided array starting at array_index
remove(item) → boolDeletes the specified behavior item and returns True if successful
remove_at(index)Removes the behavior item at the given index
clear()Removes all behavior items from the collection
contains(item) → boolReturns a boolean indicating whether the specified behavior is present in the collection
__getitem__(index: int) → BehaviorCalls getitem(index) on this BehaviorCollection instance.
__len__()Calls len on this BehaviorCollection instance.
__iter__()Calls iter on this BehaviorCollection instance.
__contains__(item) → boolCalls contains(item) on this BehaviorCollection instance.

See Also

 English