An abstract base class that represent a context menu item.
Inheritance Hierarchy
System.ObjectAutodesk.Revit.UI.MenuItem
Autodesk.Revit.UI.CommandMenuItem
Autodesk.Revit.UI.SeparatorItem
Autodesk.Revit.UI.SubMenuItem
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public class MenuItem : IDisposable
The MenuItem type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | IsValidObject | Specifies whether the .NET object represents a valid Revit entity. |
Methods
Name | Description | |
---|---|---|
![]() | Dispose | Releases all resources used by the MenuItem |
![]() | 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) |