menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramCommandBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramCommandBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    DiagramCommandBuilder
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramCommandBuilder : ControlBuilder

    Constructors

    DiagramCommandBuilder()

    Declaration
    public DiagramCommandBuilder()

    DiagramCommandBuilder(List<DiagramCommand>)

    Declaration
    public DiagramCommandBuilder(List<DiagramCommand> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<DiagramCommand> collection

    Methods

    Add()

    Declaration
    public void Add()

    CanExecute(Object)

    Check the command is executable at the moment or not

    Declaration
    public DiagramCommandBuilder CanExecute(object canExecute)
    Parameters
    Type Name Description
    System.Object canExecute
    Returns
    Type
    DiagramCommandBuilder

    CanExecute(String)

    Check the command is executable at the moment or not

    Declaration
    public DiagramCommandBuilder CanExecute(string canExecute)
    Parameters
    Type Name Description
    System.String canExecute
    Returns
    Type
    DiagramCommandBuilder

    Execute(Object)

    Defines what to be executed when the key combination is recognized

    Declaration
    public DiagramCommandBuilder Execute(object execute)
    Parameters
    Type Name Description
    System.Object execute
    Returns
    Type
    DiagramCommandBuilder

    Execute(String)

    Defines what to be executed when the key combination is recognized

    Declaration
    public DiagramCommandBuilder Execute(string execute)
    Parameters
    Type Name Description
    System.String execute
    Returns
    Type
    DiagramCommandBuilder

    Gesture(DiagramKeyGesture)

    Defines a combination of keys and key modifiers, on recognition of which the command will be executed typescript let node: NodeModel; node = { ... id: 'node', width: 100, height: 100, offsetX: 100, offsetY: 100, annotations : [{ content: 'text' }]; ... };

    Declaration
    public DiagramCommandBuilder Gesture(DiagramKeyGesture gesture)
    Parameters
    Type Name Description
    DiagramKeyGesture gesture
    Returns
    Type
    DiagramCommandBuilder

    Gesture(Action<DiagramKeyGestureBuilder>)

    Declaration
    public DiagramCommandBuilder Gesture(Action<DiagramKeyGestureBuilder> gesture)
    Parameters
    Type Name Description
    System.Action<DiagramKeyGestureBuilder> gesture
    Returns
    Type
    DiagramCommandBuilder

    Name(String)

    Defines the name of the command

    Declaration
    public DiagramCommandBuilder Name(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type
    DiagramCommandBuilder

    Parameter(String)

    Defines any additional parameters that are required at runtime

    Declaration
    public DiagramCommandBuilder Parameter(string parameter)
    Parameters
    Type Name Description
    System.String parameter
    Returns
    Type
    DiagramCommandBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved