WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ValidationErrorArgs

    Show / Hide Table of Contents

    Class ValidationErrorArgs

    The ValidationErrorEventArgs class is used to send event data for a ValidationError event.

    Inheritance
    System.Object
    System.EventArgs
    ValidationErrorArgs
    Inherited Members
    System.EventArgs.Empty
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    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 Description
    System.String

    StartPosition

    Returns the location of the invalid input within the invalid text.

    Declaration
    public int StartPosition { get; }
    Property Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved