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

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox" class="text-break">CharBox Class
</h1>
  <div class="markdown level0 summary"><p>Represents the CharBox settings.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">CharBox</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.html">GrapeCity.Win.Spread.InputMan.CellType</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Win.PluginInputMan.dll</h6>
  <h5 id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class CharBox : ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class CharBox
    Implements ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor">CharBox()</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorder_">CharBox(CharBoxBorder)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_">CharBox(CharBoxStyle)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorder_">CharBox(CharBoxStyle, CharBoxBorder)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor.html#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)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_System_Boolean_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.#ctor(System.Boolean)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_System_Boolean_">CharBox(bool)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox__ctor_System_Boolean_System_Drawing_Size_">CharBox(bool, Size)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor.html#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)</a>
        </td>
        <td 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>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_AutoSize" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.AutoSize">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.AutoSize.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_AutoSize">AutoSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the height of the control automatically
adjusts when the font assigned to the control is changed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_BackColor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.BackColor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.BackColor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the back color of the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_Border" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Border">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Border.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Border">Border</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets border of the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ContentAlignment" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ContentAlignment">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ContentAlignment.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ContentAlignment">ContentAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content alignment of the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_Font" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Font">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Font.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets font of the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ForeColor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ForeColor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ForeColor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the fore color of the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_Margin" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Margin">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Margin.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Margin">Margin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the margins around the border of the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_Padding" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Padding">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Padding.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the blank size between the border and the content within the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_Size" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Size">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Size.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_State" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.State">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.State.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_State">State</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the state of the char box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_Style" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Style">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Style.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style of the char box.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_Clone" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Clone">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Clone.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new object that is a copy of the current instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_OnPaint_System_Windows_Forms_PaintEventArgs_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.OnPaint(System.Windows.Forms.PaintEventArgs)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.OnPaint.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_OnPaint_System_Windows_Forms_PaintEventArgs_">OnPaint(PaintEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Paint.html">Paint</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_OnPropertyChanged_System_ComponentModel_PropertyChangedEventArgs_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.OnPropertyChanged.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_OnPropertyChanged_System_ComponentModel_PropertyChangedEventArgs_">OnPropertyChanged(PropertyChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when any property of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> changed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ResetBorder" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ResetBorder">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ResetBorder.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ResetBorder">ResetBorder()</a>
        </td>
        <td class="markdown level1 summary"><p>Reset border of the char box</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ResetFont" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ResetFont">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ResetFont.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ResetFont">ResetFont()</a>
        </td>
        <td class="markdown level1 summary"><p>Reset font of the char box</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ResetForeColor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ResetForeColor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ResetForeColor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ResetForeColor">ResetForeColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Reset foreColor of the char box</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ResetPadding" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ResetPadding">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ResetPadding.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ResetPadding">ResetPadding()</a>
        </td>
        <td class="markdown level1 summary"><p>Reset padding of the char box</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_SetSize_System_Drawing_Size_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.SetSize(System.Drawing.Size)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.SetSize.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_SetSize_System_Drawing_Size_">SetSize(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the size of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ShouldSerializeBorder" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ShouldSerializeBorder">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ShouldSerializeBorder.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ShouldSerializeBorder">ShouldSerializeBorder()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the Border property should be persisted.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ShouldSerializeFont" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ShouldSerializeFont">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ShouldSerializeFont.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ShouldSerializeFont">ShouldSerializeFont()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the Font property should be persisted.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ShouldSerializeForeColor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ShouldSerializeForeColor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ShouldSerializeForeColor.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ShouldSerializeForeColor">ShouldSerializeForeColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the ForeColor property should be persisted.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_ShouldSerializePadding" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ShouldSerializePadding">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.ShouldSerializePadding.html#GrapeCity_Win_Spread_InputMan_CellType_CharBox_ShouldSerializePadding">ShouldSerializePadding()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the Padding property should be persisted.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_CharBox_Paint" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Paint">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.Paint.html">Paint</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the char box is painted.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
