BehaviorCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IBehaviorCollection

public class BehaviorCollection implements IBehaviorCollection

Represents collection of behavior effects.

Methods

MethodDescription
getCount()Returns the number of behaviors in a collection.
isReadOnly()Gets a value indicating whether the IGenericCollection is read-only.
add(IBehavior item)Add new behavior to a collection.
indexOf(IBehavior item)Determines the index of a specific item in the List.
insert(int index, IBehavior item)Inserts new behavior to a collection at the specified index.
copyTo(IBehavior[] array, int arrayIndex)Copies the elements of the IGenericCollection to an Array, starting at a particular Array index.
remove(IBehavior item)Removes specified behavior from a collection.
removeAt(int index)Removes behavior from a collection at the specified index.
clear()Removes all behaviors from a collection.
contains(IBehavior item)Determines whether the IGenericCollection contains a specific value.
get_Item(int index)Returns a behavior at the specified index.
set_Item(int index, IBehavior value)Sets a behavior at the specified index.
iterator()Returns an enumerator that iterates through the collection.
iteratorJava()Returns a java iterator for the entire collection.

getCount()

public final int getCount()

Returns the number of behaviors in a collection. Read-only int.

Returns: int

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether the IGenericCollection is read-only. Read-only boolean.

Returns: boolean - true if the IGenericCollection is read-only; otherwise, false.

add(IBehavior item)

public final void add(IBehavior item)

Add new behavior to a collection.

Parameters:

ParameterTypeDescription
itemIBehaviorBehavior to add.

indexOf(IBehavior item)

public final int indexOf(IBehavior item)

Determines the index of a specific item in the List.

Parameters:

ParameterTypeDescription
itemIBehaviorThe object to locate in the List.

Returns: int - The index of item if found in the list; otherwise, -1.

insert(int index, IBehavior item)

public final void insert(int index, IBehavior item)

Inserts new behavior to a collection at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex where new behavior should be inserted.
itemIBehaviorBehavior to insert.

copyTo(IBehavior[] array, int arrayIndex)

public final void copyTo(IBehavior[] array, int arrayIndex)

Copies the elements of the IGenericCollection to an Array, starting at a particular Array index.

Parameters:

ParameterTypeDescription
arrayIBehavior[]The one-dimensional Array that is the destination of the elements copied from IGenericCollection. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.

remove(IBehavior item)

public final boolean remove(IBehavior item)

Removes specified behavior from a collection.

Parameters:

ParameterTypeDescription
itemIBehaviorBehavior to remove.

Returns: boolean

removeAt(int index)

public final void removeAt(int index)

Removes behavior from a collection at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of a behavior to remove.

clear()

public final void clear()

Removes all behaviors from a collection.

contains(IBehavior item)

public final boolean contains(IBehavior item)

Determines whether the IGenericCollection contains a specific value.

Parameters:

ParameterTypeDescription
itemIBehaviorThe object to locate in the IGenericCollection.

Returns: boolean - true if item is found in the IGenericCollection; otherwise, false.

get_Item(int index)

public final IBehavior get_Item(int index)

Returns a behavior at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of a behavior to return.

Returns: IBehavior - Animation behavior.

set_Item(int index, IBehavior value)

public final void set_Item(int index, IBehavior value)

Sets a behavior at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of a behavior to return.
valueIBehavior

iterator()

public final System.Collections.Generic.IGenericEnumerator<IBehavior> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IBehavior> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<IBehavior> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IBehavior> - An java.util.Iterator for the entire collection.