'Declaration
Public Event Formatting As EventHandler(Of FormatEventArgs)
public event EventHandler<FormatEventArgs> Formatting
Event Data
The event handler receives an argument of type FormatEventArgs containing data related to this event. The following FormatEventArgs properties provide information specific to this event.
Property | Description |
---|---|
ErrorMessage | Gets or sets the error description shown as the tooltip in the ErrorProvider icon, if ErrorInfo.ErrorProvider property is set. |
FormatInfo | Gets the FormatInfo object that fired the event. (Inherited from C1.Win.Input.Formating.FormatErrorEventArgs) |
Succeeded | Gets or sets the formatting result (assigned in the event code in Formatting). Default: True |
Target | Gets the value that indicating formatting target (ForEdit or ForDisplay). (Inherited from C1.Win.Input.Formating.FormatErrorEventArgs) |
Text | Gets or sets the text to show in the control. Your code in FormatError event can set this argument to a text you want to show in the control in case of a formatting error. |
Value | Gets the source value for formatting. (Inherited from C1.Win.Input.Formating.FormatErrorEventArgs) |
See Also