Class ValidationErrorArgs
The ValidationErrorEventArgs class is used to send event data for a ValidationError event.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class ValidationErrorArgs : EventArgs
Remarks
The required pieces of information for the ValidationError event are the invalid text and the position of the error text within the invalid text.
Constructors
ValidationErrorArgs(String, Int32)
Overloaded. Creates an object of type ValidationErrorArgs.
Declaration
public ValidationErrorArgs(string invalidText, int startPosition)
Parameters
Type | Name | Description |
---|---|---|
System.String | invalidText | The invalid text that would have resulted if this error had not been intercepted. |
System.Int32 | startPosition | The index position with the invalid text where the change occurred. |
ValidationErrorArgs(String, Int32, String)
Creates an object of type ValidationErrorArgs.
Declaration
public ValidationErrorArgs(string invalidText, int startPosition, string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | invalidText | The invalid text that would have resulted if this error had not been intercepted. |
System.Int32 | startPosition | The index position with the invalid text where the change occurred. |
System.String | errorMessage | The error message. |
Properties
ErrorMessage
Returns the error message.
Declaration
public string ErrorMessage { get; }
Property Value
Type |
---|
System.String |
InvalidText
Returns the invalid text as it would have been if the error had not intercepted it.
Declaration
public string InvalidText { get; }
Property Value
Type |
---|
System.String |
StartPosition
Returns the location of the invalid input within the invalid text.
Declaration
public int StartPosition { get; }
Property Value
Type |
---|
System.Int32 |