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
Exibir arquivo Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method 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 method

Parameterless constructor.
public RegexValidationRule ( ) : System
return System

RegexValidationRule() public method

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

RegexValidationRule() public method

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.
return System

RegexValidationRule() public method

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.
return System

Validate() public method

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
return System.Windows.Controls.ValidationResult