IBehaviorCollection

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable

public interface IBehaviorCollection extends System.Collections.Generic.IGenericEnumerable<IBehavior>

Represents collection of behavior effects.

Methods

MethodDescription
get_Item(int index)Returns a behavior at the specified index.
set_Item(int index, IBehavior value)Returns a behavior at the specified index.
getCount()Returns the number of behaviors in a collection.
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.
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)

public abstract 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 abstract void set_Item(int index, IBehavior value)

Returns a behavior at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of a behavior to return.
valueIBehavior

getCount()

public abstract int getCount()

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

Returns: int

add(IBehavior item)

public abstract void add(IBehavior item)

Add new behavior to a collection.

Parameters:

ParameterTypeDescription
itemIBehaviorBehavior to add.

indexOf(IBehavior item)

public abstract 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 abstract 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.

remove(IBehavior item)

public abstract boolean remove(IBehavior item)

Removes specified behavior from a collection.

Parameters:

ParameterTypeDescription
itemIBehaviorBehavior to remove.

Returns: boolean - True if a behavior removed successfully boolean

removeAt(int index)

public abstract void removeAt(int index)

Removes behavior from a collection at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of a behavior to remove.

clear()

public abstract void clear()

Removes all behaviors from a collection.

contains(IBehavior item)

public abstract 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.