Version

CreateMenuItems Method

A helper method for creating an array of IGMenuItem from the specified menu item definition array.
Syntax
'Declaration
 
Public Shared Sub CreateMenuItems( _
   ByVal parentCollection As ContextMenuItemCollection, _
   ByVal items() As MenuItemDefinition, _
   ByVal clickHandler As EventHandler, _
   ByVal isRootCollection As Boolean _
) 
public static void CreateMenuItems( 
   ContextMenuItemCollection parentCollection,
   MenuItemDefinition[] items,
   EventHandler clickHandler,
   bool isRootCollection
)

Parameters

parentCollection
The parent collection into which the new menu items will be added.
items
An array of MenuItemDefinition objects.
clickHandler
The System.EventHandler to associate with each new Infragistics.Win.IGControls.IGMenuItem.
isRootCollection

Return Value

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also