Class RadShortcut
Describes a combination of keys that may be used as a shortcut to RadItem.PerformClick method or any other arbitrary command.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class RadShortcut
Constructors
RadShortcut()
RadShortcut(Keys, Keys[])
Initializes a new RadShortcut instance, using the specified modifiers and key mappings.
Declaration
public RadShortcut(Keys modifiers, params Keys[] mappings)
Parameters
System.Windows.Forms.Keys
modifiers
|
System.Windows.Forms.Keys[]
mappings
|
Fields
AltText
Declaration
public static string AltText
Field Value
System.String
|
ControlText
Declaration
public static string ControlText
Field Value
System.String
|
Delimiter
Declaration
public const char Delimiter = '+'
Field Value
System.Char
|
ShiftText
Declaration
public static string ShiftText
Field Value
System.String
|
Properties
Alt
Determines whether the Alt modifier key is applied.
Declaration
public bool Alt { get; }
Property Value
System.Boolean
|
Ctrl
Determines whether the Control modifier key is applied.
Declaration
public bool Ctrl { get; }
Property Value
System.Boolean
|
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
public Keys[] KeyMappings { get; }
Property Value
System.Windows.Forms.Keys[]
|
Modifiers
Gets or sets the Keys value that describes the modifiers for the shortcut.
Declaration
public Keys Modifiers { get; }
Property Value
System.Windows.Forms.Keys
|
Shift
Determines whether the Shift modifier key is applied.
Declaration
public bool Shift { get; }
Property Value
System.Boolean
|
Methods
GetDisplayText()
Gets the human-readable represention of the current key settings.
Declaration
public string GetDisplayText()
Returns
System.String
|
IsMappingKey(Keys)
Determines whether the specified key is present in the RadDockShortcut KeyMappings list.
Declaration
public bool IsMappingKey(Keys key)
Parameters
System.Windows.Forms.Keys
key
|
Returns
System.Boolean
|
IsPartialShortcutCombination(Keys, 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
public bool IsPartialShortcutCombination(Keys modifiers, params Keys[] keys)
Parameters
System.Windows.Forms.Keys
modifiers
|
System.Windows.Forms.Keys[]
keys
|
Returns
System.Boolean
|
IsShortcutCombination(Keys, Keys[])
Determines whether the specified Keys are part
Declaration
public bool IsShortcutCombination(Keys modifiers, params Keys[] keys)
Parameters
System.Windows.Forms.Keys
modifiers
|
System.Windows.Forms.Keys[]
keys
|
Returns
System.Boolean
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|