menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CommandKeyArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CommandKeyArgs

    Notifies when to execute the custom keyboard commands .

    Inheritance
    System.Object
    CommandKeyArgs
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class CommandKeyArgs : Object
    Remarks

    The following code illustrates how to create a custom command.

    Examples
    <SfDiagramComponent>
        <CommandManager CanExecute="@CanExe">
        </CommandManager>
    </SfDiagramComponent>
    @code
    { 
        public void CanExe(CommandKeyArgs args)
        {
            args.CanExecute = true;
        }
    }

    Constructors

    CommandKeyArgs()

    Declaration
    public CommandKeyArgs()

    Properties

    CanExecute

    Defines the method that determines whether the command can be executed in its current state.

    Declaration
    public bool CanExecute { get; set; }
    Property Value
    Type
    System.Boolean

    Gesture

    Specifies a combination of keys and key modifiers, on recognition of which the command should be executed.

    Declaration
    public KeyGesture Gesture { get; }
    Property Value
    Type
    KeyGesture

    Name

    Specifies the name of the command.

    Declaration
    public string Name { get; }
    Property Value
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved