System.Windows.Forms.MaskedTextBox.ToString Method

Returns a string that represents the current masked text box. This method overrides TextBoxBase.ToString.

Syntax

public override string ToString ()

Returns

A string that contains information about the current System.Windows.Forms.MaskedTextBox. The string includes the type, a simplified view of the input string, and the formatted input string.

Remarks

This version of the MaskedTextBox.ToString method calls the base class implementation of this method, TextBoxBase.ToString, then appends the input string after processing by the mask. This method honors properties that alter the appearance of the formatted string, with the following exceptions:

Requirements

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