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
System.Collections.Generic.ICollection`1 contains a specific value. |
void |
copyTo(IBehavior[] array,
int arrayIndex)
Copies the elements of the
System.Collections.Generic.ICollection`1 to an Array , starting at a particular Array index. |
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
System.Collections.Generic.IList`1 . |
void |
insert(int index,
IBehavior item)
Inserts new behavior to a collection at the specified index.
|
boolean |
isReadOnly()
Gets a value indicating whether the
System.Collections.Generic.ICollection`1 is read-only. |
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> |
iterator()
Returns an enumerator that iterates through the 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 IBehaviorCollection
public final boolean isReadOnly()
Gets a value indicating whether the System.Collections.Generic.ICollection`1
is read-only.
Read-only boolean
.
System.Collections.Generic.ICollection`1
is read-only; otherwise, false.public final void add(IBehavior item)
Add new behavior to a collection.
add
in interface IBehaviorCollection
item
- Behavior to add.public final int indexOf(IBehavior item)
Determines the index of a specific item in the System.Collections.Generic.IList`1
.
indexOf
in interface IBehaviorCollection
item
- The object to locate in the System.Collections.Generic.IList`1
.item
if found in the list; otherwise, -1.public final void insert(int index, IBehavior item)
Inserts new behavior to a collection at the specified index.
insert
in interface IBehaviorCollection
index
- Index where new behavior should be inserted.item
- Behavior to insert.public final void copyTo(IBehavior[] array, int arrayIndex)
Copies the elements of the System.Collections.Generic.ICollection`1
to an Array
, starting at a particular Array
index.
array
- The one-dimensional Array
that is the destination of the elements copied from System.Collections.Generic.ICollection`1
. 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 System.Collections.Generic.ICollection`1
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 IBehaviorCollection
item
- Behavior to remove.public final void removeAt(int index)
Removes behavior from a collection at the specified index.
removeAt
in interface IBehaviorCollection
index
- Index of a behavior to remove.public final void clear()
Removes all behaviors from a collection.
clear
in interface IBehaviorCollection
public final boolean contains(IBehavior item)
Determines whether the System.Collections.Generic.ICollection`1
contains a specific value.
contains
in interface IBehaviorCollection
item
- The object to locate in the System.Collections.Generic.ICollection`1
.item
is found in the System.Collections.Generic.ICollection`1
; otherwise, false.public final IBehavior get_Item(int index)
Returns a behavior at the specified index.
get_Item
in interface IBehaviorCollection
index
- 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 IBehaviorCollection
index
- 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>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.