Skip to content

MenuItem

Public 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: 25.0.0.0 (25.0.0.0)

Syntax

public class MenuItem : IDisposable

The MenuItem type exposes the following members.

Properties

Name

Description


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Methods

Name

Description


Public Method

Releases all resources used by the MenuItem


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)