ContextMenu
Description:
A class that owns context menu items.
A class that owns context menu items.
Remarks:
There are three types of menu items (CommandMenuItem, SubMenuItem, SeparatorItem) that can be added to a ContextMenu object.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.UI.ContextMenu
System.Object
Autodesk.Revit.UI.ContextMenu
public class ContextMenu : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| ContextMenu() | None | Default constructor |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| AddItem(MenuItem) | None | Add an item to the Context Menu. | |
| Dispose() | None | Releases all resources used by the ContextMenu | |
| 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 |
| 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. |