Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NCommandBarBuilder Class / CreateToggleButton Method


In This Topic
    CreateToggleButton Method
    In This Topic
    Creates a toggle button, that contains the specified image. Associates an NToggleButtonCommandSource to the button.
    Syntax
    'Declaration
     
    
    Public Overridable Function CreateToggleButton( _
       ByVal image As NImage, _
       ByVal command As NCommand _
    ) As NToggleButton
    'Usage
     
    
    Dim instance As NCommandBarBuilder
    Dim image As NImage
    Dim command As NCommand
    Dim value As NToggleButton
     
    value = instance.CreateToggleButton(image, command)
    public virtual NToggleButton CreateToggleButton( 
       NImage image,
       NCommand command
    )

    Parameters

    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