Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / DataTypeCriterion Class
Members


In This Topic
    DataTypeCriterion Class
    In This Topic
    Specialization of the ValidationCriterion class that validates a value using a data type.
    Syntax
    'Declaration
     
    <TypeConverterAttribute("Xceed.Validation.Design.ValidationExpressionConverter,Xceed.Validation.v1.3.Design,Version=1.3.25455.6282,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
    <DesignTimeVisibleAttribute(False)>
    <ToolboxItemAttribute(False)>
    Public Class DataTypeCriterion 
       Inherits ValidationCriterion
    'Usage
     
    Dim instance As DataTypeCriterion
    [TypeConverter("Xceed.Validation.Design.ValidationExpressionConverter,Xceed.Validation.v1.3.Design,Version=1.3.25455.6282,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
    [DesignTimeVisible(false)]
    [ToolboxItem(false)]
    public class DataTypeCriterion : ValidationCriterion 
    Remarks

    The DataTypeCriterion class is the type used for all comparisons. The classes ConstantListCriterion, ConstantValueCriterion, InputValueCriterion, InputCellValueCriterion and RangeCriterion all derive from DataTypeCriterion. Therefore, for criteria based on these types, a data type is specified (and required).

    ValidationDataType.String will be compared using string comparison.

    For the validation of a date, the IFormatProvider is the current thread's date format.

    Inheritance Hierarchy

    System.Object
       Xceed.Validation.ValidationExpression
          Xceed.Validation.ValidationCriterion
             Xceed.Validation.DataTypeCriterion
                Xceed.Validation.ConstantListCriterion
                Xceed.Validation.ConstantValueCriterion
                Xceed.Validation.InputCellValueCriterion
                Xceed.Validation.InputValueCriterion
                Xceed.Validation.RangeCriterion

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets a boolean value indicating whether the criterion is case sensitive. (Inherited from Xceed.Validation.ValidationCriterion)
    Public PropertyGets or sets a string that substitutes name variable in error messages to define the criterion. (Inherited from Xceed.Validation.ValidationCriterion)
    Public PropertyGets or sets the custom message text used in error messages for this criterion. (Inherited from Xceed.Validation.ValidationCriterion)
    Public PropertyGets or sets the ValidationDataType that used to parse the value during validation.  
    Public PropertyGets or sets a string representing the reference ID of the criterion. (Inherited from Xceed.Validation.ValidationExpression)
    Public PropertyGets or sets a boolean value indicating whether the field must contain a value.  
    Public PropertyGets or sets a boolean value indicating whether whitepace characters should be trimmed from the control's value before testing with the criterion. (Inherited from Xceed.Validation.ValidationCriterion)
    Public PropertyGets or sets an ValidationLevel value representing the moment at which validation will be performed. (Inherited from Xceed.Validation.ValidationExpression)
    Top
    Protected Properties
     NameDescription
    Protected PropertyGets a collection of property names whose values have been explicitly set as well as the corresponding values. (Inherited from Xceed.Validation.ValidationExpression)
    Top
    Public Methods
     NameDescription
    Public MethodOverridden. Returns a boolean value indicating whether the validation expression can be evaluated.  
    Public MethodOverridden. Creates a copy of this DataTypeCriterion object.  
    Public MethodOverridden. Launches the validation on the input component.  
    Public MethodReturns the string representation of the validation expression. (Inherited from Xceed.Validation.ValidationExpression)
    Top
    Protected Methods
     NameDescription
    Protected MethodRetrieves the value of the specified property in the ValidationExpression.Properties collection. (Inherited from Xceed.Validation.ValidationExpression)
    Protected MethodRetrieves a boolean value indicating whether the specified property has been explicitly set. (Inherited from Xceed.Validation.ValidationExpression)
    Protected MethodRemoves the specified property from the ValidationExpression.Properties collection. (Inherited from Xceed.Validation.ValidationExpression)
    Top
    Public Events
     NameDescription
    Public EventRaised when an expression has been disposed. (Inherited from Xceed.Validation.ValidationExpression)
    Top
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also