# GrapeCity.Win.Spread.InputMan.CellType.CharBoxCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxCollection_Add_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxCollection_Add_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxCollection.Add*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxCollection_Add_GrapeCity_Win_Spread_InputMan_CellType_CharBox_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxCollection.Add(GrapeCity.Win.Spread.InputMan.CellType.CharBox)">Add(CharBox)</h4>
<div class="markdown level1 summary"><p>Adds a char box to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Add(CharBox charBox)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(charBox As CharBox) As Integer</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.CharBox.html">CharBox</a></td>
      <td><span class="parametername">charBox</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> indicates the char box.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> indicates the index of the char box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxCollection_Add_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxCollection.Add*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_CharBoxCollection_Add_GrapeCity_Win_Spread_InputMan_CellType_CharBox_System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.CharBoxCollection.Add(GrapeCity.Win.Spread.InputMan.CellType.CharBox,System.Int32)">Add(CharBox, int)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Add(CharBox templateCharBox, int count)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Add(templateCharBox As CharBox, count As Integer)</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.CharBox.html">CharBox</a></td>
      <td><span class="parametername">templateCharBox</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> indicate the template <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> which would be added in current collection</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> indicate the total number of <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBox.html">CharBox</a> which be added</p>
</td>
    </tr>
  </tbody>
</table>
</div>
