The following tables list the members exposed by Command.
Name | Description | |
---|---|---|
Command Constructor | Public constructor, creates a new instance of a Command. Initialize a new instance of Command object. |
Name | Description | |
---|---|---|
CommandID | Gets or sets the unique identifier of the command. Gets or sets the unique identifier of the command. | |
CommandType | Gets or sets the command type, which determines the functionality of the command being executed. Gets or sets the command type. The command type determines the functionality of the command being executed. | |
Description | Gets or sets the description text for the command, which is displayed as a tooltip on the toolbar. Gets or sets the description text for the command. This is displayed as a tooltip on the toolbar. | |
Enabled | Gets or sets the enabled flag for the command, which determines if the command can be executed. Gets or sets the enabled flag for the command. Determines if the command can be executed. | |
Image | Gets or sets the image of the command. Gets or sets the image of the command. | |
ImageTranspColor | Gets or sets a color used for transparency when drawing an image in toolbar and context menu. Gets or sets a color used for transparency when drawing an image in toolbar and context menu. | |
Index | Gets or sets the index of the command, which determines the position of the command within the collection. Gets or sets the index of the command which determines the position of the command within the collection. | |
Name | Gets the unique name of the command. Gets the unique name of the command. | |
Parameters | Gets the command parameters, used when executing the command. The command parameter which is used to execute this command. | |
PopupStyle | Gets or sets the style of the pop-up object, which is displayed for commands with one or more sub-commands. Gets or sets the style of the pop-up object, displayed for commands with one or more sub-commands. | |
Shortcut | Gets or sets a value that determines the shortcut key associated with the command. Gets or sets a value indicating the shortcut key associated with the command. | |
SubCommands | Gets the SubCommands collection of the command. Gets the SubCommands collection of the command. | |
SupportedElements | Gets or sets the supported elements of the command. Gets or sets the supported elements of the command. | |
Text | Gets or sets the text of the command that appears on both the toolbar and context menu. Gets or sets the text of the command that appears on both the toolbar and context menu. | |
Toggled | Gets or sets the toggled flag for the command, which determines how toolbar and context menu item commands are displayed. Gets or sets the toggled flag for the command. | |
ToggleGroupID | Gets or sets the group ID of the command. If not zero then all elements with this value will be grouped together, exhibiting the same behavior as a radio button list. Gets or sets the group ID of the command. If not zero, all elements with this value will be grouped together exhibiting the same behavior as a radio button list. | |
ToggleStyle | Determines the toggled behavior of the command in a toolbar or context menu. Determines the toggle behavior in the toolbar and context menu. | |
UseLastSubCommand | Determines if the last sub-command executed will be set as the default behavior. Determines if the last sub-command executed will be set as the default behavior. | |
Visible | Gets or sets the visibility attribute of the command on the toolbar and context menu. Gets or sets the visibility attribute of the command on the toolbar and context menu. |
Name | Description | |
---|---|---|
Dispose | Disposes of an object via the IDisposable interface. Implement IDisposable. (Inherited from CommandElement) | |
Execute | Overloaded. Executes a command. | |
GetImage | Gets the image associated with the command. Gets the image associated with the command. | |
IsEnabled | Overloaded. Gets the enabled state of the command. | |
IsToggled | Overloaded. Evaluates the pressed state of the command. | |
Popup | Brings up a pop-up control with sub-commands. Brings up a pop-up control with sub-commands. | |
SetDefaultSubCommand | Sets a sub-command as the default command. Sets a sub-command as a default one. | |
ToString | Overridden. Returns a string that represents the current command. Returns a string that represents the current command. |