Collection Methods

The Collection type exposes the following members.

Methods

Name Description
Public method add

Adds the specified item to the end of the collection.

Public method addRange

Adds the specified items to the end of the collection.

Public method clear

Removes all items from the collection.

Public method contains

Determines whether the specified item is in the collection.

Public method indexOf

Searches for the specified item and returns the zero-based index of the first occurrence within the entire collection.

Public method insert

Inserts the specified item into the collection at the specified index.

Public method move

Moves an item from one position to another.

Public method push

Pushes the specified item to the collection.

Public method remove
Public method removeAt

Removes the item at the specified index of the collection.

Public method toArray

See Also

Reference