# GrapeCity.Documents.Word.CellCollection.Insert

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_CellCollection_Insert_" data-uid="GrapeCity.Documents.Word.CellCollection.Insert*">Insert Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_CellCollection_Insert_" data-uid="GrapeCity.Documents.Word.CellCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_CellCollection_Insert_GrapeCity_Documents_Word_Cell_" data-uid="GrapeCity.Documents.Word.CellCollection.Insert(GrapeCity.Documents.Word.Cell)">Insert(Cell)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Cell.html">Cell</a> into this collection before a specified cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Cell Insert(Cell before)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(before As Cell) As Cell</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.Documents.Word.Cell.html">Cell</a></td>
      <td><span class="parametername">before</span></td>
      <td><p>The cell before which to insert the new cell.
If null, the cell will be added to the end of the last table row in the range.</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="GrapeCity.Documents.Word.Cell.html">Cell</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Cell.html">Cell</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_CellCollection_Insert_" data-uid="GrapeCity.Documents.Word.CellCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_CellCollection_Insert_System_String_GrapeCity_Documents_Word_Cell_" data-uid="GrapeCity.Documents.Word.CellCollection.Insert(System.String,GrapeCity.Documents.Word.Cell)">Insert(string, Cell)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Cell.html">Cell</a> into this collection before a specified cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Cell Insert(string text, Cell before)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(text As String, before As Cell) As Cell</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The paragraph text in the new cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Cell.html">Cell</a></td>
      <td><span class="parametername">before</span></td>
      <td><p>The cell before which to insert the new cell.
If null, the cell will be added to the end of the last table row in the range.</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="GrapeCity.Documents.Word.Cell.html">Cell</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Cell.html">Cell</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_CellCollection_Insert_" data-uid="GrapeCity.Documents.Word.CellCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_CellCollection_Insert_System_String_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.CellCollection.Insert(System.String,GrapeCity.Documents.Word.InsertLocation)">Insert(string, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Cell.html">Cell</a> into this collection at the specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Cell Insert(string text, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(text As String, location As InsertLocation) As Cell</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The paragraph text in the new cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The row insert position in the current range.</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="GrapeCity.Documents.Word.Cell.html">Cell</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Cell.html">Cell</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
