Spread WinForms 15
FarPoint.Win.Spread.Design Assembly / FarPoint.Win.Spread.Design Namespace / ContextMenuExtension Class / GetMenu Method
The context menu.
The name.


GetMenu Method
Gets the menu or submenu of contextmenu.
Syntax
'Declaration
 
Public Shared Function GetMenu( _
   ByVal contextMenu As ContextMenuStrip, _
   ByVal name As String _
) As ToolStripItem
 
'Usage
 
Dim contextMenu As ContextMenuStrip
Dim name As String
Dim value As ToolStripItem
 
value = ContextMenuExtension.GetMenu(contextMenu, name)

Parameters

contextMenu
The context menu.
name
The name.
Exceptions
ExceptionDescription
The exception that is thrown when there is an attempt to dereference a null object reference.
See Also