TextBoxRegex.SetRegex(TextBox, String) Method

Definition

Sets the value of the TextBoxRegex.Regex XAML attached property for a target TextBox.

public static void SetRegex (Windows.UI.Xaml.Controls.TextBox textBox, string value);
static member SetRegex : Windows.UI.Xaml.Controls.TextBox * string -> unit
Public Shared Sub SetRegex (textBox As TextBox, value As String)

Parameters

textBox
Windows.UI.Xaml.Controls.TextBox

The TextBox to set the regular expression on

value
String

Regex value

Applies to