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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*">CharBoxInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor">CharBoxInfo()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.html">CharBoxInfo</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 CharBoxInfo()</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_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_System_Boolean_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor(System.Boolean)">CharBoxInfo(bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.html">CharBoxInfo</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 CharBoxInfo(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_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_System_Boolean_System_Drawing_Size_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor(System.Boolean,System.Drawing.Size)">CharBoxInfo(bool, Size)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.html">CharBoxInfo</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 CharBoxInfo(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.CharBoxInfo.Size.html#GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo_Size">Size</a> value indicates the actually size if autosize is false.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor(GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle)">CharBoxInfo(CharBoxStyle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.html">CharBoxInfo</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 CharBoxInfo(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_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorderInfo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor(GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo)">CharBoxInfo(CharBoxBorderInfo)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.html">CharBoxInfo</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 CharBoxInfo(CharBoxBorderInfo border)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(border As CharBoxBorderInfo)</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.CharBoxBorderInfo.html">CharBoxBorderInfo</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo.html">CharBoxBorderInfo</a> object indicates the border setting of the char box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorderInfo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor(GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle,GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo)">CharBoxInfo(CharBoxStyle, CharBoxBorderInfo)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.html">CharBoxInfo</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 CharBoxInfo(CharBoxStyle style, CharBoxBorderInfo border)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As CharBoxStyle, border As CharBoxBorderInfo)</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.CharBoxBorderInfo.html">CharBoxBorderInfo</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo.html">CharBoxBorderInfo</a> object indicates the border setting of the char box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorderInfo_System_Drawing_Color_System_Drawing_Color_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor(GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle,GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo,System.Drawing.Color,System.Drawing.Color)">CharBoxInfo(CharBoxStyle, CharBoxBorderInfo, Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.html">CharBoxInfo</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 CharBoxInfo(CharBoxStyle style, CharBoxBorderInfo 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 CharBoxBorderInfo, 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.CharBoxBorderInfo.html">CharBoxBorderInfo</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo.html">CharBoxBorderInfo</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_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__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_CharBoxBorderInfo_System_Drawing_Font_System_Drawing_ContentAlignment_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#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.CharBoxBorderInfo,System.Drawing.Font,System.Drawing.ContentAlignment)">CharBoxInfo(bool, Size, Color, Color, CharBoxStyle, Padding, Padding, CharBoxBorderInfo, Font, ContentAlignment)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.html">CharBoxInfo</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 CharBoxInfo(bool autoSize, Size size, Color backColor, Color foreColor, CharBoxStyle style, Padding margin, Padding padding, CharBoxBorderInfo 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 CharBoxBorderInfo, 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.CharBoxInfo.Size.html#GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo_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.CharBoxInfo.Padding.html#GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo_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.CharBoxInfo.Padding.html#GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo_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.CharBoxBorderInfo.html">CharBoxBorderInfo</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo.html">CharBoxBorderInfo</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.CharBoxInfo.Font.html#GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo_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.CharBoxInfo.ContentAlignment.html#GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo_ContentAlignment">ContentAlignment</a> enumeration indicates the alignment of the content of the char box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxInfo__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">CharBoxInfo(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of this class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected CharBoxInfo(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>The information.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The context.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
