The Collection type exposes the following members.
Name | Description | |
---|---|---|
Collection |
Creates and initializes an instance of the Collection class. |
Name | Description | |
---|---|---|
add |
Adds the specified item to the end of the collection. |
|
addRange |
Adds the specified items to the end of the collection. |
|
clear |
Removes all items from the collection. |
|
contains |
Determines whether the specified item is in the collection. |
|
indexOf |
Searches for the specified item and returns the zero-based index of the first occurrence within the entire collection. |
|
insert |
Inserts the specified item into the collection at the specified index. |
|
move |
Moves an item from one position to another. |
|
push |
Pushes the specified item to the collection. |
|
remove | ||
removeAt |
Removes the item at the specified index of the collection. |
|
toArray |
Name | Description | |
---|---|---|
count |
Gets the number of items actually contained in the collection. |
|
item |
Gets the item at the specified index. |
Name | Description | |
---|---|---|
itemAdded |
Fires when the an item is added to the collection. |
|
itemMoved |
Fires when the an item is moved from one position to another. |
|
itemRemoved |
Fires when the an item is removed from the collection. |