GrapeCity MultiRow Windows Forms Documentation
PromptChar Property


Gets or sets the character used to represent the absence of user input in MaskedTextBoxCell.
Syntax
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<SRCategoryAttribute("Appearance")>
<LocalizableAttribute(True)>
<SRDescriptionAttribute("Indicates the character used as the placeholder.")>
<DefaultValueAttribute()>
Public Property PromptChar As Char
Dim instance As MaskedTextBoxCell
Dim value As Char
 
instance.PromptChar = value
 
value = instance.PromptChar
[RefreshProperties(RefreshProperties.Repaint)]
[SRCategory("Appearance")]
[Localizable(true)]
[SRDescription("Indicates the character used as the placeholder.")]
[DefaultValue()]
public char PromptChar {get; set;}

Property Value

A System.Char that is used to prompt the user for input. The default is an underscore "_".
Exceptions
ExceptionDescription
System.ArgumentExceptionThe character specified when setting this property is not a valid prompt character, as determined by the System.ComponentModel.MaskedTextProvider.IsValidInputChar(System.Char) method of the System.ComponentModel.MaskedTextProvider class.
System.InvalidOperationExceptionThe prompt character specified is the same as the current password character, PasswordChar. The two must be different.
Remarks
Refer to MaskedTextBox.PromptChar 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.