public class BehaviorCollection extends java.lang.Object implements IBehaviorCollection
Represents collection of behavior effects.
| Modifier and Type | Method and Description |
|---|---|
void |
add(IBehavior item)
Add new behavior to a collection.
|
void |
clear()
Removes all behaviors from a collection.
|
boolean |
contains(IBehavior item)
Determines whether the
IGenericCollection contains a specific value. |
void |
copyTo(IBehavior[] array,
int arrayIndex)
|
IBehavior |
get_Item(int index)
Returns a behavior at the specified index.
|
int |
getCount()
Returns the number of behaviors in a collection.
|
int |
indexOf(IBehavior item)
Determines the index of a specific item in the
List. |
void |
insert(int index,
IBehavior item)
Inserts new behavior to a collection at the specified index.
|
boolean |
isReadOnly()
Gets a value indicating whether the
IGenericCollection is read-only. |
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> |
iteratorJava()
Returns a java iterator for the entire collection.
|
boolean |
remove(IBehavior item)
Removes specified behavior from a collection.
|
void |
removeAt(int index)
Removes behavior from a collection at the specified index.
|
void |
set_Item(int index,
IBehavior value)
Sets a behavior at the specified index.
|
public final int getCount()
Returns the number of behaviors in a collection.
Read-only int.
getCount in interface IBehaviorCollectionpublic final boolean isReadOnly()
Gets a value indicating whether the IGenericCollection is read-only.
Read-only boolean.
IGenericCollection is read-only; otherwise, false.public final void add(IBehavior item)
Add new behavior to a collection.
add in interface IBehaviorCollectionitem - Behavior to add.public final int indexOf(IBehavior item)
Determines the index of a specific item in the List.
indexOf in interface IBehaviorCollectionitem - The object to locate in the List.public final void insert(int index,
IBehavior item)
Inserts new behavior to a collection at the specified index.
insert in interface IBehaviorCollectionindex - Index where new behavior should be inserted.item - Behavior to insert.public final void copyTo(IBehavior[] array, int arrayIndex)
Copies the elements of the IGenericCollection to an Array, starting at a particular Array index.
array - The one-dimensional Array that is the destination of the elements copied from IGenericCollection. The Array must have zero-based indexing.arrayIndex - The zero-based index in array at which copying begins.com.aspose.ms.System.ArgumentNullException - array is null.com.aspose.ms.System.ArgumentOutOfRangeException - arrayIndex is less than 0.com.aspose.ms.System.ArgumentException - The number of elements in the source IGenericCollection is greater than the available space from arrayIndex to the end of the destination array.public final boolean remove(IBehavior item)
Removes specified behavior from a collection.
remove in interface IBehaviorCollectionitem - Behavior to remove.booleanpublic final void removeAt(int index)
Removes behavior from a collection at the specified index.
removeAt in interface IBehaviorCollectionindex - Index of a behavior to remove.public final void clear()
Removes all behaviors from a collection.
clear in interface IBehaviorCollectionpublic final boolean contains(IBehavior item)
Determines whether the IGenericCollection contains a specific value.
contains in interface IBehaviorCollectionitem - The object to locate in the IGenericCollection.IGenericCollection; otherwise, false.public final IBehavior get_Item(int index)
Returns a behavior at the specified index.
get_Item in interface IBehaviorCollectionindex - Index of a behavior to return.public final void set_Item(int index,
IBehavior value)
Sets a behavior at the specified index.
set_Item in interface IBehaviorCollectionindex - Index of a behavior to return.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IBehavior>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IBehavior>iterator in interface java.lang.Iterable<IBehavior>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> iteratorJava()
Returns a java iterator for the entire collection.
Iterator for the entire collection.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.