Table of Contents

Interface IValueValidatorText

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

Validates text controls, providing a variety of filtering behaviours.

public interface IValueValidatorText : IValueValidator, IDisposable

Properties

AllowSpaceChar

Gets or sets whether space character is allowed.

CharExcludes

Gets or sets the exclude char list (the list of invalid characters).

CharIncludes

Gets or sets the include char list (the list of additional valid characters).

ExcludeEmptyStr

Gets or sets whether empty strings are filtered out.

ExcludeNonAlpha

Gets or sets whether non-alpha characters are filtered out. This is locale-dependent.

ExcludeNonAlphaNumeric

Gets or sets whether non-alphanumeric characters are filtered out. This is locale-dependent.

ExcludeNonAscii

Gets or sets whether non-ASCII characters are filtered out.

ExcludeNonDigits

Gets or sets whether non-digit characters are filtered out. This is locale-dependent.

ExcludeNonHexDigits

Gets or sets whether non-hexadecimal characters are filtered out. This is locale-dependent.

ExcludeNonNumeric

Gets or sets whether non-numeric characters are filtered out.

Style

Gets or sets style of the validator.

UseExcludeCharList

Gets or sets whether to use an exclude char list.

UseExcludeList

Gets or sets whether to use an exclude list.

UseIncludeCharList

Gets or sets whether to use an include char list.

UseIncludeList

Gets or sets whether to use an include list.

Methods

AddCharExcludes(string)

Adds chars to the list of excluded (invalid) characters.

AddCharIncludes(string)

Adds chars to the list of included characters.

AddExclude(string)

Adds exclude to the list of excluded values.

AddInclude(string)

Adds include to the list of included values.

ClearExcludes()

Clears the list of excluded values.

ClearIncludes()

Clears the list of included values.

IsValid(string)

Returns the error message if the contents of val are invalid or the empty string if val is valid.