CommandMenuItem
Description:
A class representing a single command menu item.
A class representing a single command menu item.
Remarks:
To add a menu item that can be executed, implement IExternalCommand interface and pass external command class name to CommandMenuItem constructor, create the CommandMenuItem object and use AddItem() method to add the object to context menu.
public class CommandMenuItem : MenuItem
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| CommandMenuItem(String, String, String) | None | Initialize the item data. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | (Inherited from MenuItem ) | MenuItem |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| SetAvailabilityClassName(String) | None | Set availabilityClassName of CommandMenuItem | |
| SetToolTip(String) | None | Set toolTip of CommandMenuItem | |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. (Inherited from MenuItem ) | MenuItem |