Class KeyValidateEventArgs
Cancellable event for KeyValidate of CurrencyTextBox, DoubleTextBox, IntegerTextBox, or PercentTextBox.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class KeyValidateEventArgs : SyncfusionCancelEventArgs
Constructors
KeyValidateEventArgs(Char, String, String)
Initializes a new instance of the KeyValidateEventArgs class.
Declaration
public KeyValidateEventArgs(char key, string changedString, string changedValueString)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Char | key | The key that was pressed. |
| System.String | changedString | The string after the key press. |
| System.String | changedValueString | The value string after the key press. |
Properties
ChangedString
Returns the changed string that will be set as the text of the text box if this event is not cancelled.
Declaration
[TraceProperty(true)]
public string ChangedString { get; }
Property Value
| Type |
|---|
| System.String |
ChangedValueString
Returns the unformatted changed string that will be set as the text of the text box if this event is not cancelled.
Declaration
[TraceProperty(true)]
public string ChangedValueString { get; }
Property Value
| Type |
|---|
| System.String |
Key
Returns the character key that was input by the user.
Declaration
[TraceProperty(true)]
public char Key { get; }
Property Value
| Type |
|---|
| System.Char |