# GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.PasswordChar

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_PasswordChar_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.PasswordChar*">PasswordChar Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_PasswordChar_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.PasswordChar*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_PasswordChar" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.PasswordChar">PasswordChar</h4>
<div class="markdown level1 summary"><p>Gets or sets the character used as a placeholder for the characters typed by the user.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public char PasswordChar { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property PasswordChar As Char</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.char">char</a></td>
      <td><p>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.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_PasswordChar_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
      The <b>PasswordChar</b> can be used to create a password field in a dialog box. Although you
      can use any SBCS character, most Windows-based applications use the asterisk (*) (Chr(42)).
    </p>
<p>
      This property does not affect the <span class="xref">GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.Text</span> property.
      <span class="xref">GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.Text</span> contains exactly what the user types or what
      was set from code. Setting the <b>PasswordChar</b> to 0, which is the default, will display
      the actual text in the control.
    </p>
</div>
</div>
