Bagikan melalui


CommandCollection Members

Include Protected Members
Include Inherited Members

Contains a collection of Command objects. This class cannot be inherited.

The CommandCollection type exposes the following members.

Constructors

  Name Description
Public method CommandCollection() Initializes a new instance of Command.

Top

Methods

  Name Description
Public method Add(Command) Adds a Command to the end of the collection.
Public method AddRange(ICollection) Adds the elements of an ICollection to the end of the collection.
Public method Clear() Removes all elements from the collection.
Public method Contains(Command) Indicates whether the collection contains a specified Command.
Public method CopyTo(Array, Int32) Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Public method Equals(Object) (Inherited from Object.)
Protected method Finalize() (Inherited from Object.)
Public method GetHashCode() (Inherited from Object.)
Public method GetType() (Inherited from Object.)
Public method IndexOf(Command) Gets the index of a specified Command.
Public method Insert(Int32, Command) Inserts a Command into the collection at the specified index.
Protected method MemberwiseClone() (Inherited from Object.)
Public method Remove(Command) Removes the specified Command from the collection.
Public method RemoveAt(Int32) Removes the Command at the specified index from the collection.
Public method ToString() (Inherited from Object.)

Top

Properties

  Name Description
Public property Count Gets the number of Command objects contained in the collection.
Public property Item[Int32] Gets the Command at the specified index from the collection.

Top