Revit 2025.3 API
Context |
A class that owns context menu items.

SystemObject
Autodesk.Revit.UIContextMenu
Autodesk.Revit.UIContextMenu
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
The ContextMenu type exposes the following members.

Name | Description | |
---|---|---|
![]() | ContextMenu | Default constructor |

Name | Description | |
---|---|---|
![]() | IsValidObject | Specifies whether the .NET object represents a valid Revit entity. |

Name | Description | |
---|---|---|
![]() | AddItem | Add an item to the Context Menu. |
![]() | Dispose | Releases all resources used by the ContextMenu |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |

There are three types of menu items (CommandMenuItem, SubMenuItem, SeparatorItem) that can be added to a ContextMenu object.
See Also