New to Telerik UI for WinFormsStart a free 30-day trial

Describes a combination of keys that may be used as a shortcut to RadItem.PerformClick method or any other arbitrary command.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class RadShortcut

Inheritance: objectRadShortcut

Constructors

Default constructor. Initializes an empty RadShortcut instance.

C#
public RadShortcut()

Initializes a new RadShortcut instance, using the specified modifiers and key mappings.

C#
public RadShortcut(Keys modifiers, params Keys[] mappings)
Parameters:modifiersKeysmappingsKeys[]

Fields

C#
public static string AltText
C#
public static string ControlText
C#
public const char Delimiter = '+'
C#
public static string ShiftText

Properties

Determines whether the Alt modifier key is applied.

C#
public bool Alt { get; }

Determines whether the Control modifier key is applied.

C#
public bool Ctrl { get; }

Gets a list with all the Keys that form the shortcut combination. E.g. we may have M+O and a Modifier CTRL, then the valid shortcut will be CTRL+M+O

C#
public Keys[] KeyMappings { get; }

Gets or sets the Keys value that describes the modifiers for the shortcut.

C#
public Keys Modifiers { get; }

Determines whether the Shift modifier key is applied.

C#
public bool Shift { get; }

Methods

Gets the human-readable represention of the current key settings.

C#
public string GetDisplayText()
Returns:

string

Determines whether the specified key is present in the RadDockShortcut KeyMappings list.

C#
public bool IsMappingKey(Keys key)
Parameters:keyKeysReturns:

bool

Determines whether the specified Keys are part of a shortcut combination. E.g. if we have a key mapping CTRL+M+O and the provided keys are CTRL+M, the method will return true.

C#
public bool IsPartialShortcutCombination(Keys modifiers, params Keys[] keys)
Parameters:modifiersKeyskeysKeys[]Returns:

bool

Determines whether the specified Keys are part

C#
public bool IsShortcutCombination(Keys modifiers, params Keys[] keys)
Parameters:modifiersKeyskeysKeys[]Returns:

bool

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()