Class MaskedEditorModel
MaskedEditorModel provides the model for MaskedTextBox class
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class MaskedEditorModelConstructors
MaskedEditorModel()
Initializes a new instance of the MaskedEditorModel class.
Declaration
public MaskedEditorModel()Properties
CurrencySymbol
Gets or sets the currency symbol.
Declaration
public string CurrencySymbol { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The currency symbol. | 
DateSeparator
Gets or sets the date separator.
Declaration
public string DateSeparator { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The date separator. | 
DecimalSeparator
Gets or sets the decimal separator.
Declaration
public string DecimalSeparator { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The decimal separator. | 
Mask
Gets or sets the mask.
Declaration
public string Mask { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The mask value. | 
NumberGroupSeparator
Gets or sets the number group separator.
Declaration
public string NumberGroupSeparator { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The number group separator. | 
PromptChar
Gets or sets the prompt char.
Declaration
public char PromptChar { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Char | The prompt char. | 
Text
Gets or sets the text.
Declaration
public string Text { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The text value. | 
TimeSeparator
Gets or sets the time separator.
Declaration
public string TimeSeparator { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The time separator. | 
Methods
ApplyNewMask()
Applies the new mask.
Declaration
protected void ApplyNewMask()GetMaskedText()
Gets the masked text.
Declaration
public string GetMaskedText()Returns
| Type | Description | 
|---|---|
| System.String | Return the mask text | 
GetMaskedText(String, String, String, String, String, String, Char, String)
Gets the masked text.
Declaration
public static string GetMaskedText(string mask, string text, string dateSeparator, string timeSeparator, string decimalSeparator, string numberGroupSeparator, char promptChar, string currencySymbol)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | mask | The mask value. | 
| System.String | text | The text value. | 
| System.String | dateSeparator | The date separator. | 
| System.String | timeSeparator | The time separator. | 
| System.String | decimalSeparator | The decimal separator. | 
| System.String | numberGroupSeparator | The number group separator. | 
| System.Char | promptChar | The prompt char. | 
| System.String | currencySymbol | The currency symbol. | 
Returns
| Type | Description | 
|---|---|
| System.String | Return the Mask text | 
GetNextMaskSymbol(Boolean)
Gets next symbol in the mask.
Declaration
protected string GetNextMaskSymbol(bool bMoveCursor)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | bMoveCursor | Determines whether the cursor in the mask should be moved forward. | 
Returns
| Type | Description | 
|---|---|
| System.String | Return the next mask symbol | 
GetSeparatorText(Char)
Gets text of the separator depending on the entered mask symbol.
Declaration
protected string GetSeparatorText(char symbol)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Char | symbol | Character that determines kind of the separator. | 
Returns
| Type | Description | 
|---|---|
| System.String | Text associated with the appropriate separator. | 
GetShiftStatus(String)
Gets register status of the following letters depending on the entered mask symbol.
Declaration
protected ShiftStatus GetShiftStatus(string maskSymbol)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | maskSymbol | Mask symbol. | 
Returns
| Type | Description | 
|---|---|
| ShiftStatus | ShiftStatus value that is defining the register of letter. | 
IsAcceptableSymbol(String, Char)
Determines whether [is acceptable symbol] [the specified mask symbol].
Declaration
protected bool IsAcceptableSymbol(string maskSymbol, char input)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | maskSymbol | The mask symbol. | 
| System.Char | input | The input. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
IsInputSymbol(String)
Determines whether the entered mask symbol denotes user input.
Declaration
protected bool IsInputSymbol(string maskSymbol)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | maskSymbol | The mask symbol. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if symbol can be input, otherwise - false. | 
IsShiftSymbol(String)
Determines whether the entered mask symbol causes the uppercase, lowercase shift or cancels one.
Declaration
protected bool IsShiftSymbol(string maskSymbol)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | maskSymbol | The mask symbol. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
IsSymbolLiteral(String)
Determines whether the entered mask symbol is literal.
Declaration
protected bool IsSymbolLiteral(string maskSymbol)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | maskSymbol | The mask symbol. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True is symbol is literal, else false. | 
IsSymbolSeparator(String)
Determines whether the entered mask symbol is separator.
Declaration
protected bool IsSymbolSeparator(string maskSymbol)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | maskSymbol | The mask symbol. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if symbol is separator. | 
ReplaceTextSymbol(Int32, String)
Replaces the symbol located at the entered index with the new one.
Declaration
protected bool ReplaceTextSymbol(int index, string symbol)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | Index of symbol that should be replaced. | 
| System.String | symbol | New symbol. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | Symbol replaced = true, not replaced = false |