Xceed Toolkit Plus for WPF v5.0 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.


    CreateMaskedTextProvider(String,CultureInfo,Boolean,Char,Char,Boolean) Method
    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.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also