This documentation is for the old version. Go to the latest Graphics Mill docs

Collection Members

The Collection type exposes the following members.

Constructors

Name Description
Public method Collection

Creates and initializes an instance of the Collection class.

Methods

Name Description
Public method add

Adds the specified item 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 removeAt

Removes the item at the specified index of the collection.

Properties

Name Description
Public property count

Gets the number of items actually contained in the collection.

Public property item

Gets the item at the specified index.

Events

Name Description
Public event itemAdded

Fires when the an item is added to the collection.

Public event itemMoved

Fires when the an item is moved from one position to another.

Public event itemRemoved

Fires when the an item is removed from the collection.

See Also

Reference