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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_AllowSpace_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.AllowSpace*">AllowSpace Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_AllowSpace_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.AllowSpace*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_AllowSpace" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.AllowSpace">AllowSpace</h4>
<div class="markdown level1 summary"><p>Gets or sets the allow space settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AllowSpace AllowSpace { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property AllowSpace As AllowSpace</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="GrapeCity.Win.Spread.InputMan.CellType.AllowSpace.html">AllowSpace</a></td>
      <td><p>An <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.AllowSpace.html#GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_AllowSpace">AllowSpace</a> enumeration that indicates which type of space character can be accepted.
<br>The default is <b>AllowSpace.Both</b>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_AllowSpace_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
      Use the <b>AllowSpace</b> property to specify which kind of space will be allowed in the text.
      </p>
<p></p>
<p>
        If <b>AllowSpace</b> is <b>None</b>, this <b>GcTextBox</b> does not accept a space.
        The <b>AllowSpace.Narrow</b> setting means the SBCS space is allowed.
        The <b>AllowSpace.Wide</b> setting means the DBCS space is allowed.
        The <b>AllowSpace.Both</b> setting means all kinds of spaces are allowed.
      </p>
<p></p>
<div class="NOTE"><h5>note</h5><p>
        If the AutoConvert propety is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> and the AllowSpace setting is <b>AllowSpace.Wide</b>, the control
        automatically converts the SBCS space to a DBCS space when user enters a SBCS space character. The other settings have similar behavior.
        The <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.Format.html#GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_Format_System_Object_">Format(object)</a> property is always used with the <b>AllowSpace</b> property.
      </p></div>
</div>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_AllowSpace_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.AutoConvert.html#GrapeCity_Win_Spread_InputMan_CellType_GcTextBoxCellType_AutoConvert">AutoConvert</a></div>
</div>
</div>
