TextBoxExtensions.SetRegex(TextBox, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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