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
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf 1 사용 예제들

공개 메소드들

메소드 설명
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