Share

MenuItem Class

An abstract base class that represent a context menu item.

Inheritance Hierarchy

System.Object
  Autodesk.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

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the MenuItem
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Was this information helpful?