Class
RadShortcut

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:

cs-api-definition
public class RadShortcut

Inheritance: objectRadShortcut

Constructors

RadShortcut()

Default constructor. Initializes an empty RadShortcut instance.

Declaration

cs-api-definition
public RadShortcut()

RadShortcut(Keys, params Keys[])

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

Declaration

cs-api-definition
public RadShortcut(Keys modifiers, params Keys[] mappings)

Parameters

modifiers

Keys

mappings

Keys[]

Fields

AltText

Declaration

cs-api-definition
public static string AltText

Field Value

string

ControlText

Declaration

cs-api-definition
public static string ControlText

Field Value

string

Delimiter

Declaration

cs-api-definition
public const char Delimiter = '+'

Field Value

char

ShiftText

Declaration

cs-api-definition
public static string ShiftText

Field Value

string

Properties

Alt

Determines whether the Alt modifier key is applied.

Declaration

cs-api-definition
public bool Alt { get; }

Property Value

bool

Ctrl

Determines whether the Control modifier key is applied.

Declaration

cs-api-definition
public bool Ctrl { get; }

Property Value

bool

KeyMappings

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

Declaration

cs-api-definition
public Keys[] KeyMappings { get; }

Property Value

Keys[]

Modifiers

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

Declaration

cs-api-definition
public Keys Modifiers { get; }

Property Value

Keys

Shift

Determines whether the Shift modifier key is applied.

Declaration

cs-api-definition
public bool Shift { get; }

Property Value

bool

Methods

GetDisplayText()

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

Declaration

cs-api-definition
public string GetDisplayText()

Returns

string

IsMappingKey(Keys)

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

Declaration

cs-api-definition
public bool IsMappingKey(Keys key)

Parameters

key

Keys

Returns

bool

IsPartialShortcutCombination(Keys, params Keys[])

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.

Declaration

cs-api-definition
public bool IsPartialShortcutCombination(Keys modifiers, params Keys[] keys)

Parameters

modifiers

Keys

keys

Keys[]

Returns

bool

IsShortcutCombination(Keys, params Keys[])

Determines whether the specified Keys are part

Declaration

cs-api-definition
public bool IsShortcutCombination(Keys modifiers, params Keys[] keys)

Parameters

modifiers

Keys

keys

Keys[]

Returns

bool

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()