Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / InputCellValueCriterion Class / CanEvaluate Method
The object to perform the evaluation on.


CanEvaluate Method (InputCellValueCriterion)
Returns a boolean value indicating if the validation expression can be evaluated.
Syntax
'Declaration
 
Public Overrides Function CanEvaluate( _
   ByVal componentToValidate As Object _
) As Boolean
 
'Usage
 
Dim instance As InputCellValueCriterion
Dim componentToValidate As Object
Dim value As Boolean
 
value = instance.CanEvaluate(componentToValidate)

Parameters

componentToValidate
The object to perform the evaluation on.

Return Value

Returns true if the validation expression is well formatted and has all required operands and operators to be evaluated on the passed input System.ComponentModel.Component, false otherwise.
Remarks
When overriding this method in a derived class, be sure to call the base class's method before your own code so that the base class's criteria can be evaluated first.
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