Table of Contents

Constructor CommandKeyBinding

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v9.dll

CommandKeyBinding(Keys, Keys, Action, Func<bool>)

Initializes a new instance of the CommandKeyBinding class with specified settings.

public CommandKeyBinding(Keys keyCode, Keys modifierKeys, Action @do, Func<bool> canDo)

Parameters

keyCode Keys

The keys associated with the action.

modifierKeys Keys

The modifier keys associated with the action.

do Action

Action that executes when the key combination is pressed.

canDo Func<bool>

The method to verify whether action can be performed.