# FarPoint.Win.Spread.SheetView.AddTable

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_AddTable_" data-uid="FarPoint.Win.Spread.SheetView.AddTable*">AddTable Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_AddTable_" data-uid="FarPoint.Win.Spread.SheetView.AddTable*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddTable_System_String_System_Int32_System_Int32_System_Int32_System_Int32_System_String_" data-uid="FarPoint.Win.Spread.SheetView.AddTable(System.String,System.Int32,System.Int32,System.Int32,System.Int32,System.String)">AddTable(string, int, int, int, int, string)</h4>
<div class="markdown level1 summary"><p>Adds a table with the specified name to the specified cell range of the sheet view with the specified style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TableView AddTable(string tableName, int row, int column, int rowCount, int columnCount, string tableStyleName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddTable(tableName As String, row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, tableStyleName As String) As TableView</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">tableName</span></td>
      <td><p>Name of table to add.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Row count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Column count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">tableStyleName</span></td>
      <td><p>Name of table style applied to the new table.</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="FarPoint.Win.Spread.TableView.html">TableView</a></td>
      <td><p>The newly added <a class="xref" href="FarPoint.Win.Spread.TableView.html">TableView</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddTable_" data-uid="FarPoint.Win.Spread.SheetView.AddTable*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddTable_System_String_System_Int32_System_Int32_System_Int32_System_Int32_System_String_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.AddTable(System.String,System.Int32,System.Int32,System.Int32,System.Int32,System.String,System.Boolean,System.Boolean)">AddTable(string, int, int, int, int, string, bool, bool)</h4>
<div class="markdown level1 summary"><p>Adds a table with a specified name to the specified cell range of the sheet view with the specified style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TableView AddTable(string tableName, int row, int column, int rowCount, int columnCount, string tableStyleName, bool visibleHeaderRow, bool visibleTotalRow)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddTable(tableName As String, row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, tableStyleName As String, visibleHeaderRow As Boolean, visibleTotalRow As Boolean) As TableView</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">tableName</span></td>
      <td><p>Name of 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">row</span></td>
      <td><p>Row index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Row count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Column count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">tableStyleName</span></td>
      <td><p>Name of table style applied to the table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">visibleHeaderRow</span></td>
      <td><p>Indicates if the table has a visible header row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">visibleTotalRow</span></td>
      <td><p>Indicates if the table has a visible total row.</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="FarPoint.Win.Spread.TableView.html">TableView</a></td>
      <td><p>The newly added <a class="xref" href="FarPoint.Win.Spread.TableView.html">TableView</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddTable_" data-uid="FarPoint.Win.Spread.SheetView.AddTable*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddTable_System_String_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.SheetView.AddTable(System.String,System.Int32,System.Int32,System.Int32,System.Int32)">AddTable(string, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Adds a table with the specified name to the specified cell range of the sheet view with the default table style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TableView AddTable(string tableName, int row, int column, int rowCount, int columnCount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddTable(tableName As String, row As Integer, column As Integer, rowCount As Integer, columnCount As Integer) As TableView</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">tableName</span></td>
      <td><p>Name of 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">row</span></td>
      <td><p>Row index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Row count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Column count of specified cell 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="FarPoint.Win.Spread.TableView.html">TableView</a></td>
      <td><p>The newly added <a class="xref" href="FarPoint.Win.Spread.TableView.html">TableView</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddTable_" data-uid="FarPoint.Win.Spread.SheetView.AddTable*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddTable_System_Int32_System_Int32_System_Int32_System_Int32_System_String_" data-uid="FarPoint.Win.Spread.SheetView.AddTable(System.Int32,System.Int32,System.Int32,System.Int32,System.String)">AddTable(int, int, int, int, string)</h4>
<div class="markdown level1 summary"><p>Adds a table to the specified cell range of the sheet view with the specified style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TableView AddTable(int row, int column, int rowCount, int columnCount, string tableStyleName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddTable(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, tableStyleName As String) As TableView</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">row</span></td>
      <td><p>Row index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Row count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Column count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">tableStyleName</span></td>
      <td><p>Name of table style applied to the table.</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="FarPoint.Win.Spread.TableView.html">TableView</a></td>
      <td><p>The newly added <a class="xref" href="FarPoint.Win.Spread.TableView.html">TableView</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddTable_" data-uid="FarPoint.Win.Spread.SheetView.AddTable*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddTable_System_Int32_System_Int32_System_Int32_System_Int32_System_String_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.AddTable(System.Int32,System.Int32,System.Int32,System.Int32,System.String,System.Boolean,System.Boolean)">AddTable(int, int, int, int, string, bool, bool)</h4>
<div class="markdown level1 summary"><p>Adds a table to the specified cell range of the sheet view with the specified style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TableView AddTable(int row, int column, int rowCount, int columnCount, string tableStyleName, bool visibleHeaderRow, bool visibleTotalRow)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddTable(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, tableStyleName As String, visibleHeaderRow As Boolean, visibleTotalRow As Boolean) As TableView</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">row</span></td>
      <td><p>Row index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Row count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Column count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">tableStyleName</span></td>
      <td><p>Name of table style applied to the table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">visibleHeaderRow</span></td>
      <td><p>Indicates if the table has a visible header row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">visibleTotalRow</span></td>
      <td><p>Indicates if the table has a visible total row.</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="FarPoint.Win.Spread.TableView.html">TableView</a></td>
      <td><p>The newly added <a class="xref" href="FarPoint.Win.Spread.TableView.html">TableView</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddTable_" data-uid="FarPoint.Win.Spread.SheetView.AddTable*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddTable_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.SheetView.AddTable(System.Int32,System.Int32,System.Int32,System.Int32)">AddTable(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Adds a table to the specified cell range of the sheet view with the default style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TableView AddTable(int row, int column, int rowCount, int columnCount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddTable(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer) As TableView</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">row</span></td>
      <td><p>Row index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Row count of specified cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Column count of specified cell 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="FarPoint.Win.Spread.TableView.html">TableView</a></td>
      <td><p>The newly added <a class="xref" href="FarPoint.Win.Spread.TableView.html">TableView</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddTable_" data-uid="FarPoint.Win.Spread.SheetView.AddTable*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddTable_FarPoint_Win_Spread_TableView_" data-uid="FarPoint.Win.Spread.SheetView.AddTable(FarPoint.Win.Spread.TableView)">AddTable(TableView)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="FarPoint.Win.Spread.TableView.html">TableView</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool AddTable(TableView table)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddTable(table As TableView) 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="FarPoint.Win.Spread.TableView.html">TableView</a></td>
      <td><span class="parametername">table</span></td>
      <td><p>The <a class="xref" href="FarPoint.Win.Spread.TableView.html">TableView</a> object.</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.boolean">bool</a></td>
      <td><p>TRUE if success. Otherwise, FALSE.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
