Bagikan melalui


FilteredTextBox.CharacterFilter Property

A .NET regular expression for filtering out unwanted characters.

Therefore, for example, you could allow for 0-9 with the following expresssion : @"\\d"

Namespace:  Microsoft.TeamFoundation.Controls.WPF
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)

Syntax

'Declaration
Public Property CharacterFilter As String
public string CharacterFilter { get; set; }
public:
property String^ CharacterFilter {
    String^ get ();
    void set (String^ value);
}
member CharacterFilter : string with get, set
function get CharacterFilter () : String 
function set CharacterFilter (value : String)

Property Value

Type: System.String
Returns String.

.NET Framework Security

See Also

Reference

FilteredTextBox Class

Microsoft.TeamFoundation.Controls.WPF Namespace