Gets or sets the character used as a placeholder for the characters typed by the user.
Syntax
Visual Basic (Declaration) | |
---|
Public Property PasswordChar As Char |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As GcTextBoxCellType
Dim value As Char
instance.PasswordChar = value
value = instance.PasswordChar |
C# | |
---|
public char PasswordChar {get; set;} |
Property Value
The character used to mask characters entered in a single-line control. Set the value of this property to 0 (character value) if you do not want the control to mask characters as they are typed. Equals 0 (character value) by default.
Remarks
Example
This example uses the PasswordChar property.
C# | Copy Code |
---|
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType gctext = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
gctext.PasswordChar = Convert.ToChar("A");
fpSpread1.Sheets[0].Cells[0, 0].CellType = gctext; |
VB.NET | Copy Code |
---|
Dim gctext As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
gctext.PasswordChar = Chr(65)
FpSpread1.Sheets(0).Cells(0, 0).CellType = gctext |
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also