Table of Contents

Interface ICharValidator

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Extends ICustomCharValidator. Contains methods and properties which allow to specify valid and invalid chars and chars categories for the input.

public interface ICharValidator : ICustomCharValidator, IImmutableObject, IDisposableObject, IDisposable, IBaseObject

Methods

AllCategoriesBad()

Sets all possible character categories (UnicodeCategory) as invalid for the input.

AllCategoriesValid(bool)

Sets all possible character categories (UnicodeCategory) as valid or invalid for the input.

AllCharsBad()

Sets all possible characters as invalid for the input.

AllCharsValid(bool)

Sets all possible characters as valid or invalid for the input.

AllowDigits()

Allows digits [0..9] for the input.

AllowHexDigits()

Allows hex digits for the input. Hex digits are [0..9], [a..f], [A..F].

AllowNativeDigits()

Allows native digits returned by NativeDigits for the input.

AllowNegativeSign()

Allows negative sign chars for the input (minus).

AllowPositiveSign()

Allows positive sign chars for the input (plus).

BadCategories(params UnicodeCategory[])

Sets the specified character categories as invalid for the input.

BadCategory(UnicodeCategory)

Sets the specified character category as invalid for the input.

BadChar(char)

Sets the specified character as invalid for the input.

BadChars(params char[])

Sets all the characters from the specified array as invalid for the input.

BadChars(string?)

Sets all string characters as invalid for the input.

BadRange(char, char)

Sets all the characters in the range between minCh and maxCh as invalid for the input.

Reset()

Resets object to the initial state.

ValidCategories(params UnicodeCategory[])

Sets the specified character categories as valid for the input.

ValidCategories(UnicodeCategory[], bool)

Sets the specified character categories as valid or invalid for the input.

ValidCategory(UnicodeCategory, bool)

Sets the specified character category as valid or invalid for the input.

ValidChar(char, bool)

Sets the specified character as valid or invalid for the input.

ValidChars(params char[])

Sets the specifieds characters as valid for the input.

ValidChars(char[], bool)

Sets the specifieds characters as valid or invalid for the input.

ValidChars(string?, bool)

Sets all string characters as valid or invalid for the input.

ValidChars(string[], bool)

Sets all string characters as valid or invalid for the input.

ValidRange(char, char, bool)

Sets all the characters in the range between minCh and maxCh as valid or invalid for the input.