Click or drag to resize

CommandCollection Class

Maintains a list of registered Commands.
Inheritance Hierarchy

Namespace:  Easymap.AddIn
Assembly:  Easymap.AddIn (in Easymap.AddIn.dll) Version: 11.2.0.0
Syntax
public sealed class CommandCollection : BaseObject, 
	IEnumerable<Command>, IEnumerable, IList, ICollection

The CommandCollection type exposes the following members.

Properties
  NameDescription
Public propertyCount
Count of Command items in the collection.
Public propertyItem
Get; Returns the Command item at the specified index.
Top
Methods
  NameDescription
Public methodAdd
Adds an item to the collection.
Public methodAddCommandLineHandler
Adds a handler for a command line switch or parameter.
Public methodAddCommmandLineHandler Obsolete.
Adds a handler for a command line switch or parameter.
Public methodClear
Clears all Command items from the collection.
Public methodContains
Returns true if the specified Command is contained in the collection.
Public methodCreateCommand(CommandType, String)
Creates a new Command instance.
Public methodCreateCommand(CommandType, String, CommandEventHandler)
Creates a new Command instance.
Public methodCreateCommand(CommandType, String, Image, CommandEventHandler)
Creates a new Command instance.
Public methodExecuteCommand
Executes the specified Command.
Public methodExecuteCommandLineHandler(String, String)
Executes the specified command line handler.
Public methodExecuteCommandLineHandler(String, String)
Executes the specified command line handler.
Public methodGetEnumerator
Enumerates through the collection of Command items.
Public methodIndexOf
Returns the index of the specified Command item.
Public methodRemove
Removes the specified Command from the collection.
Public methodRemoveCommandLineHandler
Remove a command line handler.
Top
Remarks
The CommandCollection is a collection of Command. Each item represents an entry in the menu or toolbar. Use the CreateCommand(CommandType, String) function to create a new instance of the Command class. Use Add(Command) to add the Command to the collection.
See Also