ASP.NET Core

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Gesture - ASP.NETCore API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Gesture

    Defines a combination of keys and key modifiers, on recognition of which the command will be executed

    Inheritance
    System.Object
    EJTagHelper
    Gesture
    Inherited Members
    EJTagHelper.GetControlDetails()
    EJTagHelper.GetControlDetails(String)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class Gesture : EJTagHelper

    Constructors

    Gesture()

    Declaration
    public Gesture()

    Properties

    Key

    Gets or sets the key value, on recognition of which the command will be executed

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    [JsonProperty("key")]
    public Keys Key { get; set; }
    Property Value
    Type Description
    Keys

    Keys.None

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.CommandManager = new CommandManager();
               Command Command = new Command();
               Command.Gesture = new Gesture();
               Command.Gesture.Key = Keys.C;
               Command.Gesture.KeyModifiers = KeyModifiers.Shift;
               Model.CommandManager.Commands.Add("clone", Command);

    KeyModifiers

    Gets or sets a combination of key modifiers, on recognition of which the command will be executed

    Declaration
    [JsonProperty("keyModifiers")]
    [JsonConverter(typeof(StringEnumConverter))]
    public KeyModifiers KeyModifiers { get; set; }
    Property Value
    Type Description
    KeyModifiers

    KeyModifiers.None

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.CommandManager = new CommandManager();
               Command Command = new Command();
               Command.Gesture = new Gesture();
               Command.Gesture.Key = Keys.C;
               Command.Gesture.KeyModifiers = KeyModifiers.Shift;
    
               Model.CommandManager.Commands.Add("clone", Command);
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved