Class GridCurrencyTextBox
Adds grid cell-specific keyboard logic to a CurrencyTextBox.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridCurrencyTextBox : CurrencyTextBox, IThemeProvider, ISupportInitialize, ISerializable, IVisualStyle
Constructors
GridCurrencyTextBox(GridCurrencyTextBoxCellRenderer)
Initializes a new GridCurrencyTextBox and attaches it to a GridCurrencyTextBoxCellRenderer.
Declaration
public GridCurrencyTextBox(GridCurrencyTextBoxCellRenderer parent)
Parameters
Type | Name | Description |
---|---|---|
GridCurrencyTextBoxCellRenderer | parent | Currency text box cell renderer. |
Properties
ParentCell
Gets the associated cell renderer for the text box.
Declaration
public GridCurrencyTextBoxCellRenderer ParentCell { get; }
Property Value
Type |
---|
GridCurrencyTextBoxCellRenderer |
Methods
HandleDecimalKey()
Invoked when the decimal key is pressed.
Declaration
protected override bool HandleDecimalKey()
Returns
Type | Description |
---|---|
System.Boolean | True if the key is handled; false otherwise. |
Overrides
Remarks
The defined behavior for this key is to jump to the position immediately after the decimal position.
IsInputKey(Keys)
Determines whether the specified key is an input key or a special key that requires preprocessing.
Declaration
protected override bool IsInputKey(Keys keyData)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Keys | keyData | One of the key's values. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified key is an input key; otherwise, false. |
Paste()
Pastes the data in the clipboard into the currency textbox cell.
Declaration
public override void Paste()
Overrides
PreProcessMessage(ref Message)
Preprocesses keyboard or input messages within the message loop before they are dispatched.
Declaration
public override bool PreProcessMessage(ref Message msg)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | msg | Message to be preprocessed. |
Returns
Type | Description |
---|---|
System.Boolean | True if the operation is successful. |
ProcessCmdKey(ref Message, Keys)
Processes a command key.
Declaration
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | msg | A System.Windows.Forms.Message, passed by reference that represents the window message to process |
System.Windows.Forms.Keys | keyData | One of the System.Windows.Forms.Keys values that represents the shortcut key to process. |
Returns
Type | Description |
---|---|
System.Boolean | true if the command key was processed by the control; otherwise, false. |
ProcessDialogKey(Keys)
Declaration
protected override bool ProcessDialogKey(Keys keyData)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Keys | keyData |
Returns
Type | Description |
---|---|
System.Boolean | true if the key was processed by the control; otherwise, false. |
ProcessKeyMessage(ref Message)
This method overrides the System.Windows.Forms.Control.ProcessKeyMessage(System.Windows.Forms.Message@) method and handles the key messages that are of interest to the NumberTextBox.
Declaration
protected override bool ProcessKeyMessage(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m | The message that is to handled. |
Returns
Type | Description |
---|---|
System.Boolean | True if the key message is handled; false otherwise. |
Overrides
WndProc(ref Message)
Declaration
protected override void WndProc(ref Message msg)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | msg |