C# Class 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
Inheritance: System.Windows.Controls.ValidationRule
Afficher le fichier Open project: Warewolf-ESB/Warewolf Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

RegexValidationRule() public méthode

Parameterless constructor.
public RegexValidationRule ( ) : System
Résultat System

RegexValidationRule() public méthode

Creates a RegexValidationRule with the specified regular expression.
public RegexValidationRule ( string regexText ) : System
regexText string The regular expression used by the new instance.
Résultat System

RegexValidationRule() public méthode

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.
Résultat System

RegexValidationRule() public méthode

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.
Résultat System

Validate() public méthode

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
Résultat System.Windows.Controls.ValidationResult