Class KeyEventArgs
Notifies while performing the key actions.
Inheritance
System.Object
KeyEventArgs
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class KeyEventArgs : Object
Examples
<SfDiagramComponent Width = "1000px" Height="1000px" KeyUp="@OnKeyUp">
</SfDiagramComponent>
@code
{
private void OnKeyUp(KeyEventArgs args)
{
}
}
Constructors
KeyEventArgs()
Declaration
public KeyEventArgs()
Properties
Element
Returns the selected element of the diagram.
Declaration
public IDiagramObject Element { get; }
Property Value
Type |
---|
IDiagramObject |
Key
Returns the value of the key action.
Declaration
public string Key { get; }
Property Value
Type |
---|
System.String |
KeyCode
Returns a number that represents the actual key pressed.
Declaration
public int KeyCode { get; }
Property Value
Type |
---|
System.Int32 |
KeyModifiers
Returns any modifier keys that were pressed when the flick gesture occurred.
Declaration
public ModifierKeys KeyModifiers { get; }
Property Value
Type |
---|
ModifierKeys |