Leadtools.Forms.Processing Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
IsValidated Property
See Also 
Leadtools.Forms.Processing Namespace > TextFormFieldResult Class : IsValidated Property



Specifes whether the read text matches the specifed regular expression in the text field.

Syntax

Visual Basic (Declaration) 
Public Property IsValidated As Boolean
Visual Basic (Usage)Copy Code
Dim instance As TextFormFieldResult
Dim value As Boolean
 
instance.IsValidated = value
 
value = instance.IsValidated
C# 
public bool IsValidated {get; set;}
C++/CLI 
public:
property bool IsValidated {
   bool get();
   void set (bool value);
}

Return Value

true if text string matches the specified regular expression, otherwise, false.

Remarks

The value of IsValidated is only used when the value of TextFormField.RegexPattern is not a null reference (Nothing in Visual Basic).

Using regular expression does not change the results of the processing. However the value of the TextFormFieldResult.IsValidated of the TextFormFieldResult object will determine whether the text read matches the specified regular expression.

For example, if you set TextFormField.RegexPattern to a date expression such as "MM-DD-YYYY" and the value of the result text in OcrFormFieldResult.Text is "9 12 09", then the regular expression is not matched and the value of TextFormFieldResult.IsValidated will be false. If however the value of the result text is "09-12-2009", then the regular expression is matched and the value of TextFormFieldResult.IsValidated will be true.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features