CommandCollection Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of Command objects. This class cannot be inherited.
[System.Runtime.InteropServices.Guid("96BAC2E7-D849-4146-8100-A7BF3C0A9617")]
public sealed class CommandCollection : System.Collections.IList
[<System.Runtime.InteropServices.Guid("96BAC2E7-D849-4146-8100-A7BF3C0A9617")>]
type CommandCollection = class
interface IList
interface ICollection
interface IEnumerable
Public NotInheritable Class CommandCollection
Implements IList
- Inheritance
-
CommandCollection
- Attributes
- Implements
Command |
Initializes a new instance of CommandCollection using the default values. |
Command |
Initializes a new instance of CommandCollection using the specified parent. |
Count |
Gets the number of elements contained in the collection. |
Item[Int32] |
Gets or sets the Command element at the specified index. |
Add(Command) |
Adds the specified Command to the end of the collection. |
Add |
Adds the set of specified elements to the end of the collection. |
Clear() |
Removes all items from the collection. |
Contains(Command) |
Determines whether the specified Command exists in the collection. |
Copy |
Copies the elements of the collection to an Array, starting at a particular Array index. |
Index |
Searches for the specified Command and returns its zero-based index within the collection. |
Insert(Int32, Command) |
Inserts the specified Command to the collection at the specified index. |
Remove(Command) |
Removes the specified Command from this collection. |
Remove |
Removes the Command at the specified index. |