C# Класс WPF.JoshSmith.Controls.Validation.RegexValidationRule

A System.Windows.Controls.ValidationRule-derived class which supports the use of regular expressions for validation.
Documentation: http://www.codeproject.com/KB/WPF/RegexValidationInWPF.aspx
Наследование: System.Windows.Controls.ValidationRule
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
RegexValidationRule ( ) : System

Parameterless constructor.

RegexValidationRule ( string regexText ) : System

Creates a RegexValidationRule with the specified regular expression.

RegexValidationRule ( string regexText, string errorMessage ) : System

Creates a RegexValidationRule with the specified regular expression and error message.

RegexValidationRule ( string regexText, string errorMessage, RegexOptions regexOptions ) : System

Creates a RegexValidationRule with the specified regular expression, error message, and RegexOptions.

Validate ( object value, CultureInfo cultureInfo ) : System.Windows.Controls.ValidationResult

Validates the 'value' argument using the regular expression and RegexOptions associated with this object.

Описание методов

RegexValidationRule() публичный Метод

Parameterless constructor.
public RegexValidationRule ( ) : System
Результат System

RegexValidationRule() публичный Метод

Creates a RegexValidationRule with the specified regular expression.
public RegexValidationRule ( string regexText ) : System
regexText string The regular expression used by the new instance.
Результат System

RegexValidationRule() публичный Метод

Creates a RegexValidationRule with the specified regular expression and error message.
public RegexValidationRule ( string regexText, string errorMessage ) : System
regexText string The regular expression used by the new instance.
errorMessage string The error message used when validation fails.
Результат System

RegexValidationRule() публичный Метод

Creates a RegexValidationRule with the specified regular expression, error message, and RegexOptions.
public RegexValidationRule ( string regexText, string errorMessage, RegexOptions regexOptions ) : System
regexText string The regular expression used by the new instance.
errorMessage string The error message used when validation fails.
regexOptions RegexOptions The RegexOptions used by the new instance.
Результат System

Validate() публичный Метод

Validates the 'value' argument using the regular expression and RegexOptions associated with this object.
public Validate ( object value, CultureInfo cultureInfo ) : System.Windows.Controls.ValidationResult
value object
cultureInfo System.Globalization.CultureInfo
Результат System.Windows.Controls.ValidationResult