Back to Devexpress

TextEdit.MaskSaveLiteral Property

wpf-devexpress-dot-xpf-dot-editors-dot-textedit-dce96062.md

latest1.9 KB
Original Source

TextEdit.MaskSaveLiteral Property

Gets or sets whether constantly displayed mask characters (literals) are included in an editor’s value, for the Simple and Regular mask types. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool MaskSaveLiteral { get; set; }
vb
Public Property MaskSaveLiteral As Boolean

Property Value

TypeDescription
Boolean

true if the constantly displayed mask characters are included in an editor’s value; otherwise, false.

|

Remarks

For the Regular and Simple mask types, a mask expression consists of control symbols (which define the type of character that should appear in a corresponding position or otherwise control user input) and literals. If the MaskSaveLiteral property is true , the edit value will store literal characters along with characters representing placeholders and data an end-user enters. If the property is false , only placeholders and user input characters are stored in the edit value.

For the RegEx mask type, the constantly displayed characters are always included in the editor’s value.

To learn more, see Mask Type: Extended Regular Expressions.

See Also

TextEdit Class

TextEdit Members

DevExpress.Xpf.Editors Namespace