GrapeCity MultiRow Windows Forms Documentation
PasswordChar Property (MaskedTextBoxCell)


Gets or sets the substitute character to be displayed for user input.
Syntax
<GcSerializationInternalImplAttribute(UseShadowProperty=True, 
   ShadowPropertyName="PasswordCharImpl", 
   GetMethodName="", 
   SetMethodName="", 
   DescriptorTypeName="GrapeCity.Framework.Xml.Serialization.ShadowSerializablePropertyDescritpor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
<SRCategoryAttribute("Behavior")>
<SRDescriptionAttribute("Indicates the character to display for password input.")>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
Public Property PasswordChar As Char
Dim instance As MaskedTextBoxCell
Dim value As Char
 
instance.PasswordChar = value
 
value = instance.PasswordChar
[GcSerializationInternalImpl(UseShadowProperty=true, 
   ShadowPropertyName="PasswordCharImpl", 
   GetMethodName="", 
   SetMethodName="", 
   DescriptorTypeName="GrapeCity.Framework.Xml.Serialization.ShadowSerializablePropertyDescritpor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
[SRCategory("Behavior")]
[SRDescription("Indicates the character to display for password input.")]
[RefreshProperties(RefreshProperties.Repaint)]
public char PasswordChar {get; set;}

Property Value

A System.Char value used as the password character. The default is '\0'.
Exceptions
ExceptionDescription
System.ArgumentExceptionThe character specified when setting this property is not a valid password character, as determined by the System.ComponentModel.MaskedTextProvider.IsValidPasswordChar(System.Char) method of the System.ComponentModel.MaskedTextProvider class.
System.InvalidOperationExceptionThe password character specified is the same as the current prompt character, PromptChar. The two must be different.
Remarks
Refer to MaskedTextBox.PasswordChar in MSDN.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MaskedTextBoxCell Class
MaskedTextBoxCell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.