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


In This Topic
    AddMenuItem(NMenu,NImage,NCommand) Method
    In This Topic
    Adds a menu item to the specified menu that executes the specified command.
    Syntax
    'Declaration
     
    
    Public Overloads Function AddMenuItem( _
       ByVal menu As NMenu, _
       ByVal image As NImage, _
       ByVal command As NCommand _
    ) As NMenuItem
    'Usage
     
    
    Dim instance As NContextMenuBuilder
    Dim menu As NMenu
    Dim image As NImage
    Dim command As NCommand
    Dim value As NMenuItem
     
    value = instance.AddMenuItem(menu, image, command)
    public NMenuItem AddMenuItem( 
       NMenu menu,
       NImage image,
       NCommand command
    )

    Parameters

    menu
    image
    command
    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