Class PopupMenuShortcut

Namespace
Forma
Assembly
Forma.dll

Retained keyboard shortcut/accelerator descriptor used by PopupMenu.

public sealed class PopupMenuShortcut
Inheritance
PopupMenuShortcut
Inherited Members

Constructors

PopupMenuShortcut(string, Keys, bool, bool, bool, bool)

public PopupMenuShortcut(string name, Keys key, bool control = false, bool alt = false, bool shift = false, bool meta = false)

Parameters

name string
key Keys
control bool
alt bool
shift bool
meta bool

Properties

Alt

public bool Alt { get; }

Property Value

bool

Control

public bool Control { get; }

Property Value

bool

DisplayText

public string DisplayText { get; }

Property Value

string

IsValid

public bool IsValid { get; }

Property Value

bool

Key

public Keys Key { get; }

Property Value

Keys

Meta

public bool Meta { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

Shift

public bool Shift { get; }

Property Value

bool

Methods

Matches(Keys, KeyboardState)

public bool Matches(Keys key, KeyboardState keyboard)

Parameters

key Keys
keyboard KeyboardState

Returns

bool