Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit Namespace / MaskedTextBox Class / CreateMaskedTextProvider(String,CultureInfo,Boolean,Char,Char,Boolean) Method
The string that will be used as the input mask.
The CultureInfo that will be used by the masked-text provider.
true if the prompt char should be considered as a valid input character; false, otherwise. By default, true.
A character that represents the positions in the masked text box that require input. By default, "_"­ (underscore).
A character that represents the character to used to mask a password.
true if non-ASCII characters are accepted; false otherwise. By default, false.


In This Topic
    CreateMaskedTextProvider(String,CultureInfo,Boolean,Char,Char,Boolean) Method
    In This Topic
    Creates the masked-text provider that will be used by the masked text box specifying various settings.
    Syntax
    'Declaration
     
    
    Protected Overridable Function CreateMaskedTextProvider( _
       ByVal mask As String, _
       ByVal cultureInfo As CultureInfo, _
       ByVal allowPromptAsInput As Boolean, _
       ByVal promptChar As Char, _
       ByVal passwordChar As Char, _
       ByVal restrictToAscii As Boolean _
    ) As MaskedTextProvider
    'Usage
     
    
    Dim instance As MaskedTextBox
    Dim mask As String
    Dim cultureInfo As CultureInfo
    Dim allowPromptAsInput As Boolean
    Dim promptChar As Char
    Dim passwordChar As Char
    Dim restrictToAscii As Boolean
    Dim value As MaskedTextProvider
     
    value = instance.CreateMaskedTextProvider(mask, cultureInfo, allowPromptAsInput, promptChar, passwordChar, restrictToAscii)

    Parameters

    mask
    The string that will be used as the input mask.
    cultureInfo
    The CultureInfo that will be used by the masked-text provider.
    allowPromptAsInput
    true if the prompt char should be considered as a valid input character; false, otherwise. By default, true.
    promptChar
    A character that represents the positions in the masked text box that require input. By default, "_"­ (underscore).
    passwordChar
    A character that represents the character to used to mask a password.
    restrictToAscii
    true if non-ASCII characters are accepted; false otherwise. By default, false.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also