Xceed Grid for WinForms v4.3 Documentation
IsCharValid Method


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > TextBoxArea Class : IsCharValid Method
The character representing the mask.
The character to validate against the mask character.
Verifies if a character is valid for a specific mask.
Syntax
'Declaration
 
Protected Overridable Function IsCharValid( _

   ByVal maskChar As Char, _

   ByVal charToValidate As Char _

) As Boolean
'Usage
 
Dim instance As TextBoxArea

Dim maskChar As Char

Dim charToValidate As Char

Dim value As Boolean

 

value = instance.IsCharValid(maskChar, charToValidate)
protected virtual bool IsCharValid( 

   char maskChar,

   char charToValidate

)

Parameters

maskChar
The character representing the mask.
charToValidate
The character to validate against the mask character.

Return Value

true if is valid for the specified mask character; false otherwise.
Remarks
When overriding MaskChars in a derived class, IsCharValid must also be overridden to return true if the inputted char is valid for the new mask character. If MaskChars is overridden to add chars to the supported mask chars, then the base implementation of IsCharValid should be called before your own. If all new chars are provided, then the base implementation does not need to be called.
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