# GrapeCity.Documents.Word.TableCollection.Insert

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_TableCollection_Insert_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert*">Insert Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_TableCollection_Insert_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_TableCollection_Insert_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert(GrapeCity.Documents.Word.InsertLocation)">Insert(InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> into this collection at a 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 Table Insert(InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(location As InsertLocation) As Table</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.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.Table.html">Table</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_TableCollection_Insert_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_TableCollection_Insert_GrapeCity_Documents_Word_Style_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert(GrapeCity.Documents.Word.Style,GrapeCity.Documents.Word.InsertLocation)">Insert(Style, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> into this collection at a 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 Table Insert(Style style, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(style As Style, location As InsertLocation) As Table</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.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The table style.</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 target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.Table.html">Table</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_TableCollection_Insert_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_TableCollection_Insert_System_Int32_System_Int32_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert(System.Int32,System.Int32,GrapeCity.Documents.Word.InsertLocation)">Insert(int, int, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> into this collection at a 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 Table Insert(int columns, int rows, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(columns As Integer, rows As Integer, location As InsertLocation) As Table</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.int32">int</a></td>
      <td><span class="parametername">columns</span></td>
      <td><p>The number of columns in the new table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rows</span></td>
      <td><p>The number of rows in the new table.</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 target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.Table.html">Table</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_TableCollection_Insert_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_TableCollection_Insert_System_Int32_System_Int32_GrapeCity_Documents_Word_Style_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert(System.Int32,System.Int32,GrapeCity.Documents.Word.Style,GrapeCity.Documents.Word.InsertLocation)">Insert(int, int, Style, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> into this collection at a 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 Table Insert(int columns, int rows, Style style, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(columns As Integer, rows As Integer, style As Style, location As InsertLocation) As Table</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.int32">int</a></td>
      <td><span class="parametername">columns</span></td>
      <td><p>The number of columns in the new table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rows</span></td>
      <td><p>The number of rows in the new table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The table style.</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 target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.Table.html">Table</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_TableCollection_Insert_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_TableCollection_Insert_System_String_____GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.TableCollection.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.Table.html">Table</a> into this collection at a 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 Table Insert(string[][] texts, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(texts As String()(), location As InsertLocation) As Table</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">texts</span></td>
      <td><p>A two dimensional array of texts to put in the cells.
The first dimension determines the number of rows,
the second the number of cells.</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 target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.Table.html">Table</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_TableCollection_Insert_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_TableCollection_Insert_System_String_____GrapeCity_Documents_Word_Style_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.TableCollection.Insert(System.String[][],GrapeCity.Documents.Word.Style,GrapeCity.Documents.Word.InsertLocation)">Insert(string[][], Style, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> into this collection at a 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 Table Insert(string[][] texts, Style style, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(texts As String()(), style As Style, location As InsertLocation) As Table</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">texts</span></td>
      <td><p>A two dimensional array of texts to put in the cells.
The first dimension determines the number of rows,
the second the number of cells.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The table style.</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 target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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.Table.html">Table</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
