Description
Some edit controls can work in the so-called password mode in which they do not display the actual text. They mask it by using a pre-defined character. The actual text is usually masked in password edit controls. The wPasswordChar
property holds the character that is displayed instead of the actual characters.
Declaration
TestObj.wPasswordChar
Read-Only Property | String |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section |
Applies To
The property is applied to the following objects:
Developer Express ButtonEdit, Developer Express TextEdit, Java Swing Password Field and 4 more objects, MFC Edit Browse, Qt LineEdit, Win32 Edit, WPF PasswordBox « Collapse the list
View Mode
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Property Value
The character that is displayed instead of the actual characters in the edit control.
If the control’s text is not masked, the wPasswordChar
property holds an empty string.
Remarks
To get the actual text the edit control contains, use the wText
property.
Example
To view an example that demonstrates how to use the wPasswordChar
property, see Working With Passwords Within an Edit Control.
See Also
Working With Passwords Within an Edit Control
wText Property (Edit Controls)