The following tables list the members exposed by Command.
Name | Description | |
---|---|---|
![]() |
Command Constructor | Initialize a new instance of Command object. |
Name | Description | |
---|---|---|
![]() |
disposed | True if object is disposed by force (Inherited from CommandElement) |
Name | Description | |
---|---|---|
![]() |
CommandID | Gets or sets the unique identifier of the command. |
![]() |
CommandType | 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. This is displayed as a tooltip on the toolbar. |
![]() |
Enabled | 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. |
![]() |
ImageTranspColor | 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. |
![]() |
Name | Gets the unique name of the command. |
![]() |
Parameters | The command parameter which is used to execute this command. |
![]() |
PopupStyle | 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 indicating the shortcut key associated with the command. |
![]() |
SubCommands | Gets the SubCommands collection of the command. |
![]() |
SupportedElements | 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. |
![]() |
Toggled | Gets or sets the toggled flag for the command. |
![]() |
ToggleGroupID | 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 toggle behavior in the toolbar and context menu. |
![]() |
UseLastSubCommand | 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. |
Name | Description | |
---|---|---|
![]() |
Dispose | Implement IDisposable. (Inherited from CommandElement) |
![]() |
Execute | Overloaded. Executes the command without parameters. |
![]() |
GetImage | Gets the image associated with the command. |
![]() |
IsEnabled | Overloaded. Evaluates the enabled state of the command. |
![]() |
IsToggled | Overloaded. Evaluates the pressed state of the command. |
![]() |
SetDefaultSubCommand | Sets a sub-command as a default one. |
![]() |
ToString | Overridden. Returns a string that represents the current command. |