System.Windows.Forms.MaskedTextBox.TextMaskFormat Property

Gets or sets a value that determines whether literals and prompt characters are included in the formatted string.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.MaskFormat.IncludeLiterals)]
public MaskFormat TextMaskFormat { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The MaskedTextBox.TextMaskFormat property determines how the literal and prompt characters in the mask are processed when the generating the formatted string. More specifically, it determines whether literal characters, prompt characters, or both are included in the MaskedTextBox.Text property. When prompt characters are excluded, they are transformed into spaces in the formatted string.

Note:

The MaskedTextBox.CutCopyMaskFormat property serves a similar purpose with respect to how the MaskedTextBox.Text property is interpreted.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0