System.Windows.Forms.MaskedTextBox.SelectedText Property

Gets or sets the current selection in the System.Windows.Forms.MaskedTextBox control.

Syntax

public override string SelectedText { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Selections retrieved using this property are formatted according to the control's formatting properties, such as MaskedTextBox.Mask, MaskedTextBox.FormatProvider, MaskedTextBox.TextMaskFormat and MaskedTextBox.CutCopyMaskFormat. Selections set using this property behave like a Paste operation: each character is matched against the mask, and the MaskedTextBox.MaskInputRejected event is raised for invalid characters. If MaskedTextBox.CutCopyMaskFormat is true, literals and prompt characters are allowed when setting MaskedTextBox.SelectedText, and will be removed silently unless they violate the mask.

Requirements

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