Nevron .NET Vision
Nevron.Diagram.WinForm.Commands Namespace / NDiagramContextMenuBuilder Class / AddGenericCommands Method
object for which to add generic commands


In This Topic
    AddGenericCommands Method
    In This Topic
    Adds generic commands, which apply to the specified object to the specified context menu
    Syntax
    'Declaration
     
    
    Protected Overridable Sub AddGenericCommands( _
       ByVal obj As System.Object, _
       ByVal menu As NContextMenu _
    ) 
    'Usage
     
    
    Dim instance As NDiagramContextMenuBuilder
    Dim obj As System.Object
    Dim menu As NContextMenu
     
    instance.AddGenericCommands(obj, menu)
    protected virtual void AddGenericCommands( 
       System.object obj,
       NContextMenu menu
    )

    Parameters

    obj
    object for which to add generic commands
    menu
    menu in which to add the commands
    Remarks
    This method will call the GetEditCommands, GetFormatCommands, GetViewCommands and GetActionCommands methods for the specified object and add the returned commands in submenus.
    Requirements

    Target Platforms: 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