Skip to main content

KeyShortcut Members

A class used by various controls to provide shortcut keys.

Constructors

Name Description
KeyShortcut() Creates an instance of the KeyShortcut class and sets the shortcut to the None value.
KeyShortcut(Keys) Creates an instance of the KeyShortcut class with the specified shortcut.
KeyShortcut(Shortcut) Creates an instance of the KeyShortcut class with the specified shortcut.

Fields

Name Description
Empty static Gets the static KeyShortcut object whose KeyShortcut.Key property is set to None.

Properties

Name Description
AltKeyName static Gets the name of the ALT key which is dependent upon the end-user’s regional settings.
ControlKeyName static Gets the name of the CONTROL key which is dependent upon the end-user’s regional settings.
IsExist Tests whether the current shortcut specifies a valid key combination.
Key Gets the shortcut used to activate particular functionality.
ShiftKeyName static Gets the name of the SHIFT key which is dependent upon the end-user’s regional settings.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Tests whether the shortcuts of the current and specified KeyShortcut objects are identical.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current object.
GetKeyDisplayText(Keys) static Returns the text representation of the specified System.Windows.Forms.Keys object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Gets the text representation of the current shortcut.
See Also