Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NContextMenuBuilder Class / AddMenuItem Method / AddMenuItem(NMenuItemCollection,NImage,String) Method


In This Topic
    AddMenuItem(NMenuItemCollection,NImage,String) Method
    In This Topic
    Adds a menu item to the specified collection that has the specified image and text.
    Syntax
    'Declaration
     
    
    Public Overloads Function AddMenuItem( _
       ByVal menuItems As NMenuItemCollection, _
       ByVal image As NImage, _
       ByVal text As System.String _
    ) As NMenuItem
    'Usage
     
    
    Dim instance As NContextMenuBuilder
    Dim menuItems As NMenuItemCollection
    Dim image As NImage
    Dim text As System.String
    Dim value As NMenuItem
     
    value = instance.AddMenuItem(menuItems, image, text)
    public NMenuItem AddMenuItem( 
       NMenuItemCollection menuItems,
       NImage image,
       System.string text
    )

    Parameters

    menuItems
    image
    text
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also