|  Sub  | 
 A class representing a menu flyout. 
  Inheritance Hierarchy
 Inheritance Hierarchy  Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
 Syntax
 Syntax  The SubMenuItem type exposes the following members.
 Constructors
 Constructors  | Name | Description | |
|---|---|---|
|   | SubMenuItem | Initialize the item data. | 
 Properties
 Properties  | Name | Description | |
|---|---|---|
|   | IsValidObject | Specifies whether the .NET object represents a valid Revit entity. (Inherited from MenuItem ) | 
 Methods
 Methods  | Name | Description | |
|---|---|---|
|   | Dispose | (Inherited from 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 ) | 
 Remarks
 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.
 See Also
 See Also