Collections are structures to provide access to data that represent an array, but without the ability to modify the data in the array.

Type Parameters

  • T

Hierarchy

  • ItemCollection

Methods

  • Applies an operation to all items in this collection.

    Parameters

    Returns void

  • Gets the item using a delegate matching function

    Parameters

    Returns T[]

    A T[] whose members have been validated by delegate.

  • Gets the item given by the index.

    Parameters

    • itemNumber: number

      The item number to get.

    Returns T

    The T in the itemNumber-th place.

  • Gets the item given by the index.

    Type Parameters

    • TSubType

    Parameters

    • itemNumber: number

      The item number to get.

    Returns TSubType

    The T in the itemNumber-th place.

    See

    Controls.Control.getName() for Control-naming schemes.

  • Gets the item given by the key.

    Parameters

    • itemName: string

      The item name to get.

    Returns T

    The T matching the key itemName.

    See

    Controls.Control.getName() for Control-naming schemes.

  • Gets the item given by the key.

    Type Parameters

    • TSubType

    Parameters

    • attributeName: string

    Returns TSubType

    The T matching the key itemName.

    See

    Controls.Control.getName() for Control-naming schemes.

  • Gets the entire array of T.

    Returns T[]

    A T[].

  • Gets the length of the collection.

    Returns number

    The length.

Generated using TypeDoc