Class ShortcutTextBox
Represents a text box control that is used for key shortcuts.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Edit.Dialogs
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class ShortcutTextBox : TextBoxExt, IThemeProvider, ISupportInitialize, ISerializable, IVisualStyle
Constructors
ShortcutTextBox()
Initializes a new instance of in ShortcutTextBox class.
Declaration
public ShortcutTextBox()
Properties
EnteredKeys
Gets the entered Keys sequence.
Declaration
public ShortcutTextBox.KeyState[] EnteredKeys { get; }
Property Value
Type |
---|
ShortcutTextBox.KeyState[] |
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | True to release both managed and unmanaged resources; false to release only unmanaged resources. |
Overrides
FriendlyNamedKeys(Keys)
Gets friendly named keys.
Declaration
protected string FriendlyNamedKeys(Keys keys)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Keys | keys | Keys. |
Returns
Type | Description |
---|---|
System.String | String with friendly named keys. |
IsDigit(String)
Checks whether string is digit.
Declaration
protected bool IsDigit(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | String to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if string is digit; otherwise false. |
IsModifierKey(String)
Checks whether string is modifier.
Declaration
protected bool IsModifierKey(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | String to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if string is modifier; otherwise false. |
ProcessDialogKey(Keys)
Processes dialog key.
Declaration
protected override bool ProcessDialogKey(Keys keyData)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Keys | keyData | Keys to process. |
Returns
Type | Description |
---|---|
System.Boolean | True if the key was processed by the control; otherwise, false. |
ResetSequence()
Resets key sequence.
Declaration
protected void ResetSequence()
UpdateText()
Updates text according to the currently entered sequence.
Declaration
protected void UpdateText()
WndProc(ref Message)
Processes message from the keyboard hook.
Declaration
protected override void WndProc(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m | The Windows Message to process. |