BarShortcut

References
public sealed class BarShortcut
Maintains fields for key shortcuts to bar elements.

Constructors

BarShortcut

#
public BarShortcut(char c, string info)
c (char)
info (string)

BarShortcut

#
public BarShortcut(Keys keys, string info)
keys (Keys)
info (string)

Properties

Char

#
public char Char { get; set; }
Gets or sets what key char might trigger this element. It is up to the control or form hosting this toolbar element to decide whether or not to actually use this information. If a Keys has been set, the Char property will be set to the null char.

Info

#
public string Info { get; set; }
Gets or sets the explanatory info for the Keys or Char fields. This may be drawn as a suffix in a tooltip.

Keys

#
public Keys Keys { get; set; }
Gets or sets what key(s) might trigger this element. It is up to the control or form hosting this toolbar element to decide whether or not to actually use this information. If a Char has been set, the Keys property will be set to Keys.None.

Methods

Matches

#
public bool Matches(KeyEventArgs e)
Check whether key event arguments matches this code.
e (KeyEventArgs)

ToString

#
public override string ToString()
Object.ToString