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


In This Topic
    ConstantValueCriterion Class
    In This Topic
    Specialization of the DataTypeCriterion class that compares a value with a constant.
    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 ConstantValueCriterion 
       Inherits DataTypeCriterion
    'Usage
     
    Dim instance As ConstantValueCriterion
    [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 ConstantValueCriterion : DataTypeCriterion 
    Inheritance Hierarchy

    System.Object
       Xceed.Validation.ValidationExpression
          Xceed.Validation.ValidationCriterion
             Xceed.Validation.DataTypeCriterion
                Xceed.Validation.ConstantValueCriterion

    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 the constant value of type specified by DataTypeCriterion.DataType property used in the comparison.  
    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. (Inherited from Xceed.Validation.DataTypeCriterion)
    Public PropertyGets or sets a string representing the reference ID of the criterion. (Inherited from Xceed.Validation.ValidationExpression)
    Public PropertyGets or sets the CompareValueOperator used to compare a value with a constant value.  
    Public PropertyGets or sets a boolean value indicating whether the field must contain a value. (Inherited from Xceed.Validation.DataTypeCriterion)
    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 ConstantValueCriterion 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