# GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*">CharBox Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor">CharBox()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CharBox()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_System_Boolean_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor(System.Boolean)">CharBox(bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CharBox(bool autoSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(autoSize As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">autoSize</span></td>
      <td><p>A <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">bool</a> value if set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> indicates the</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_System_Boolean_System_Drawing_Size_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor(System.Boolean,System.Drawing.Size)">CharBox(bool, Size)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CharBox(bool autoSize, Size size)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(autoSize As Boolean, size As Size)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">autoSize</span></td>
      <td><p>A <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">bool</a> value if set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> indicates the</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Size.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Size">Size</a> value indicates the actually size if autosize is false.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor(GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle)">CharBox(CharBoxStyle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CharBox(CharBoxStyle style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As CharBoxStyle)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a> enumeration indicates the style of the char box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorder_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor(GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder)">CharBox(CharBoxBorder)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CharBox(CharBoxBorder border)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(border As CharBoxBorder)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder.html">CharBoxBorder</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder.html">CharBoxBorder</a> object indicates the border setting of the char box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorder_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor(GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle,GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder)">CharBox(CharBoxStyle, CharBoxBorder)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CharBox(CharBoxStyle style, CharBoxBorder border)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As CharBoxStyle, border As CharBoxBorder)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a> enumeration indicates the style of the char box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder.html">CharBoxBorder</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder.html">CharBoxBorder</a> object indicates the border setting of the char box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorder_System_Drawing_Color_System_Drawing_Color_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor(GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle,GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder,System.Drawing.Color,System.Drawing.Color)">CharBox(CharBoxStyle, CharBoxBorder, Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CharBox(CharBoxStyle style, CharBoxBorder border, Color backColor, Color foreColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As CharBoxStyle, border As CharBoxBorder, backColor As Color, foreColor As Color)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a> enumeration indicates the style of the char box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder.html">CharBoxBorder</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder.html">CharBoxBorder</a> object indicates the border setting of the char box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value indicates Color of the background.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">foreColor</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value indicates Color of the foreground.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_System_Boolean_System_Drawing_Size_System_Drawing_Color_System_Drawing_Color_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_System_Windows_Forms_Padding_System_Windows_Forms_Padding_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorder_System_Drawing_Font_System_Drawing_ContentAlignment_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor(System.Boolean,System.Drawing.Size,System.Drawing.Color,System.Drawing.Color,GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle,System.Windows.Forms.Padding,System.Windows.Forms.Padding,GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder,System.Drawing.Font,System.Drawing.ContentAlignment)">CharBox(bool, Size, Color, Color, CharBoxStyle, Padding, Padding, CharBoxBorder, Font, ContentAlignment)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CharBox(bool autoSize, Size size, Color backColor, Color foreColor, CharBoxStyle style, Padding margin, Padding padding, CharBoxBorder border, Font font, ContentAlignment contentAlignment)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(autoSize As Boolean, size As Size, backColor As Color, foreColor As Color, style As CharBoxStyle, margin As Padding, padding As Padding, border As CharBoxBorder, font As Font, contentAlignment As ContentAlignment)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">autoSize</span></td>
      <td><p>A <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">bool</a> value if set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> indicates the char box is auto size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Size.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Size">Size</a> value indicates the actually size if autosize is false.</p>
<param name="style">
  A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a> enumeration indicates the style of the char box.
<param name="backColor">
  A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value indicates Color of the background.
<param name="foreColor">
  A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value indicates Color of the foreground.

</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">foreColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Padding</span></td>
      <td><span class="parametername">margin</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Padding.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Padding">Padding</a> value indicates the margin of the char box.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Padding</span></td>
      <td><span class="parametername">padding</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Padding.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Padding">Padding</a> value indicates the padding of the char box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder.html">CharBoxBorder</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorder.html">CharBoxBorder</a> object indicates the border setting of the char box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Font.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Font">Font</a> object indicates font of the char box to render the char.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.contentalignment">ContentAlignment</a></td>
      <td><span class="parametername">contentAlignment</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ContentAlignment.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ContentAlignment">ContentAlignment</a> enumeration indicates the alignment of the content of the char box.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
