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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_GcCharMaskCellType_AllowSpace_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType.AllowSpace*">AllowSpace Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_GcCharMaskCellType_AllowSpace_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType.AllowSpace*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_GcCharMaskCellType_AllowSpace" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType.AllowSpace">AllowSpace</h4>
<div class="markdown level1 summary"><p>Gets or sets whether to allow space input.</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>One of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType.AllowSpace.html#GrapeCity_Win_Spread_InputMan_CellType_GcCharMaskCellType_AllowSpace">AllowSpace</a> values.
<br>
The default is <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.AllowSpace.html#GrapeCity_Win_Spread_InputMan_CellType_AllowSpace_Both">Both</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_GcCharMaskCellType_AllowSpace_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
      Use the <b>AllowSpace</b> property to specify which kind of space is allowed in the text.
      </p>
<p></p>
<p>
      If <b>AllowSpace</b> is <b>None</b>, <b>GcCharMask</b> does not accept spaces.
      The <b>AllowSpace.Narrow</b> mode means the SBCS space is allowed.
      The <b>AllowSpace.Wide</b> mode means the DBCS space is allowed.
      The <b>AllowSpace.Both</b> mode means all kinds of spaces are allowed.
      </p>
<p></p>
<div class="NOTE"><h5>note</h5><p>
        If the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType.AutoConvert.html#GrapeCity_Win_Spread_InputMan_CellType_GcCharMaskCellType_AutoConvert">AutoConvert</a> propety is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> and <b>AllowSpace</b> is <b>AllowSpace.Wide</b>, the control
        automatically converts the SBCS space to a DBCS space when the user enters a SBCS space character. Other settings are the same.
        The <span class="xref">GrapeCity.Win.Spread.InputMan.CellType.GcCharMask.Format</span> property is always used with the AllowSpace property.
      </p></div>
</div>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_GcCharMaskCellType_AllowSpace_seealso">See Also</h5>
<div class="seealso">
    <div><span class="xref">AutoConvert</span></div>
    <div><span class="xref">Format</span></div>
</div>
</div>
