CommandItem Class
Autodesk.Connectivity.Explorer.Extensibility›Autodesk.Connectivity.Explorer.Extensibility
A CommandItem is the pull-right menu entry; CommandItems must be added to a CommandSite.
Syntax
public sealed class CommandItem Public NotInheritable Class CommandItem Constructors
| Name | Description |
|---|---|
| CommandItem | Creates a command item. |
Properties
| Name | Description |
|---|---|
| Description | Gets or sets the descriptive text that displays for this command in a Customize dialog. It gives more detail about what the command does. |
| Hint | Gets or sets the text representing the tooltip contents for the command item |
| Id | Gets the Guid for this CommandItem; each Guid must be unique |
| Image | Gets or sets the image object to be used as the icon for this command. For best result provide a 32x32 image which still looks good when scaled down to 16x16. Having a transparent color is also suggested. |
| Label | Gets the text displayed in the menu |
| MultiSelectEnabled | Gets or sets the value that enables multi-select. If true (the default), this command is enabled when multiple items are selected (subject to filtering by NavigationType). If false, this command is enabled only when a single item is selected. |
| NavigationTypes | Gets or sets the object types for which this command is available. If not specified, this command is always available. |
| ToolbarPaintStyle | Gets or sets the PaintStyle for this CommandItem when deployed on a toolbar. |
Events
| Name | Description |
|---|---|
| Execute | The Execute event is fired when this command is activated; usually a result of the selecting this menu item. |
Returned By
Where you get a CommandItem — members that return one.
Inheritance Hierarchy
- System.Object
- Autodesk.Connectivity.Explorer.Extensibility.CommandItem