Xceed Grid for WinForms v4.3 Documentation
ValidateText(String) Method


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > TextBoxArea Class > ValidateText Method : ValidateText(String) Method
A string representing the text to validate.
Validates the specified text against the Mask.
Syntax
'Declaration
 
Public Overloads Function ValidateText( _

   ByVal text As String _

) As Boolean
'Usage
 
Dim instance As TextBoxArea

Dim text As String

Dim value As Boolean

 

value = instance.ValidateText(text)
public bool ValidateText( 

   string text

)

Parameters

text
A string representing the text to validate.

Return Value

true if the text is valid for the specified Mask; false otherwise.
Remarks

text must be passed as though the mask were applied to it. For example, if ">@9@-9@9" is used as the mask, then "J4L-4C3" would be valid, but "J4L4C3" would not.

If no mask is used, Validate will always return true.

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

Reference

TextBoxArea Class
TextBoxArea Members
Overload List