Class Gesture
Defines a combination of keys and key modifiers, on recognition of which the command will be executed
Inherited Members
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);