ICommands
The Commands API includes functionality for creating Custom Commands and menus.
See the Samples for more examples of how to create custom commands and menus.
Properties
Name | Type | Description |
---|---|---|
Events | IEvents | Returns the event registering interface of the ICommands interface. |
Methods
Name | Description |
---|---|
AddCustomCommandToMenu | Adds existing custom command to the specified context menu location. |
CreateCustomCommand | Creates a custom command that can be added to the application toolbar or to the contextmenu. |
CreateSubMenuItem | Creates a new SubMenu for already created Menu. |
DeleteCustomCommand | Deletes a custom command. The command is automatically removed. |
ExecuteCommand | Executes a user command. |
GetCommandName | Resolves the name that has been associated with the given command id. |
GetCommandState | Gets the command state for builtin or custom command in specified location. |
GetMenuIdOfBuiltInCommand | Gets the MenuItem ID of a built-in command by its command ID and location. |
RemoveCustomCommandFromMenu | Removes a custom command from the specified menu location. |
RemoveMenuItem | Removes menuitem from the menu. |
SetCommandState | Sets the command's state to be hidden, visible, enabled or disabled. Calling this method may affect context menu, application toolbar, menus or all of them. |
SetMenuItemState | Sets the MenuItem state individually. |