Export (0) Print
Expand All

MaskedTextProvider.ToDisplayString Method

Returns the formatted string in a displayable form.

Namespace: System.ComponentModel
Assembly: System (in system.dll)

public string ToDisplayString ()
public String ToDisplayString ()
public function ToDisplayString () : String
Not applicable.

Return Value

The formatted String that includes prompts and mask literals.

The ToDisplayString method will always include prompt and literal characters in the return value, regardless of the value of the IncludePrompt or IncludeLiterals properties. This method will always display password characters if the PasswordChar property is set to a character value other than a null reference (Nothing in Visual Basic).

ToDisplayString is commonly used to obtain the string to display in associated user interface elements, such as MaskedTextBox.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft