2025 Class
Changes 5
C

SubMenuItem

Description:
A class representing a menu flyout.
Remarks:

To add a child menu, create a new ContextMenu object and add MenuItem on it, pass the child ContextMenu object to SubMenuItem constructor and create SubMenuItem object, use AddItem() method to add the SubMenuItem object to parent ContextMenu.

Inheritance Hierarchy:
System.Object
  Autodesk.Revit.UI.MenuItem
    Autodesk.Revit.UI.SubMenuItem
public class SubMenuItem : MenuItem
Name Return Type Description Inherited From
C SubMenuItem(String, ContextMenu) None Initialize the item data.
Name Return Type Description Inherited From
M Dispose() None (Inherited from MenuItem ) MenuItem
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity. (Inherited from MenuItem ) MenuItem