'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)
protected virtual MaskedTextProvider CreateMaskedTextProvider( string mask, CultureInfo cultureInfo, bool allowPromptAsInput, char promptChar, char passwordChar, bool 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.