# GrapeCity.Spreadsheet.ITables.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_ITables_Add_" data-uid="GrapeCity.Spreadsheet.ITables.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_ITables_Add_" data-uid="GrapeCity.Spreadsheet.ITables.Add*"></a>
<h4 id="GrapeCity_Spreadsheet_ITables_Add_System_Int32_System_Int32_System_Int32_System_Int32_GrapeCity_Spreadsheet_YesNoGuess_System_String_System_String_" data-uid="GrapeCity.Spreadsheet.ITables.Add(System.Int32,System.Int32,System.Int32,System.Int32,GrapeCity.Spreadsheet.YesNoGuess,System.String,System.String)">Add(int, int, int, int, YesNoGuess, string, string)</h4>
<div class="markdown level1 summary"><p>Creates the <a class="xref" href="GrapeCity.Spreadsheet.ITable.html">ITable</a> at the specified cell range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITable Add(int row, int column, int row2, int column2, YesNoGuess tableHasHeaders = YesNoGuess.Guess, string tableStyle = null, string name = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Add(row As Integer, column As Integer, row2 As Integer, column2 As Integer, Optional tableHasHeaders As YesNoGuess = YesNoGuess.Guess, Optional tableStyle As String = Nothing, Optional name As String = Nothing) As ITable</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>An integer value indicates the top row index.</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>An integer value indicates the left column index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row2</span></td>
      <td><p>An integer value indicates the bottom row index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column2</span></td>
      <td><p>An integer value indicates the right column index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html">YesNoGuess</a></td>
      <td><span class="parametername">tableHasHeaders</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html">YesNoGuess</a> constant that indicates whether the data has column labels. If the source range does not contain headers, Spread will automatically generate headers. Default value: <a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html#GrapeCity_Spreadsheet_YesNoGuess_Guess">Guess</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">tableStyle</span></td>
      <td><p>A string value indicates the table style. Default value is TableStyleMedium2.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>A string value indicates the table name. If you won't provide, table name will be generated automatically.</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.Spreadsheet.ITable.html">ITable</a></td>
      <td><p>A <span class="xref">GrapeCity.Spreadsheet.Table</span> value represents the created table. <code>null</code> if the table cannot be created.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_ITables_Add_System_Int32_System_Int32_System_Int32_System_Int32_GrapeCity_Spreadsheet_YesNoGuess_System_String_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the table has headers, the first row of cells will be converted to Text , if not already set to text. The conversion will be based on the visible text for the cell. This means that if there is a date value with a Date format that changes with locale, the conversion to a list might produce different results depending on the current system locale. Moreover, if there are two cells in the header row that have the same visible text, an incremental Integer will be appended to make each column header unique.</p>
</div>


<a id="GrapeCity_Spreadsheet_ITables_Add_" data-uid="GrapeCity.Spreadsheet.ITables.Add*"></a>
<h4 id="GrapeCity_Spreadsheet_ITables_Add_System_String_GrapeCity_Spreadsheet_YesNoGuess_System_String_System_String_" data-uid="GrapeCity.Spreadsheet.ITables.Add(System.String,GrapeCity.Spreadsheet.YesNoGuess,System.String,System.String)">Add(string, YesNoGuess, string, string)</h4>
<div class="markdown level1 summary"><p>Creates the <a class="xref" href="GrapeCity.Spreadsheet.ITable.html">ITable</a> at the specified cell range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITable Add(string srcRange, YesNoGuess tableHasHeaders = YesNoGuess.Guess, string tableStyle = null, string name = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Add(srcRange As String, Optional tableHasHeaders As YesNoGuess = YesNoGuess.Guess, Optional tableStyle As String = Nothing, Optional name As String = Nothing) As ITable</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">srcRange</span></td>
      <td><p>An A1-style notation address indicates the data source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html">YesNoGuess</a></td>
      <td><span class="parametername">tableHasHeaders</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html">YesNoGuess</a> constant that indicates whether the data has column labels. If the source range does not contain headers, Spread will automatically generate headers. Default value: <a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html#GrapeCity_Spreadsheet_YesNoGuess_Guess">Guess</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">tableStyle</span></td>
      <td><p>A string value indicates the table style. Default value is TableStyleMedium2.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>A string value indicates the table name. If you won't provide, table name will be generated automatically.</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.Spreadsheet.ITable.html">ITable</a></td>
      <td><p>A <span class="xref">GrapeCity.Spreadsheet.Table</span> value represents the created table. <code>null</code> if the table cannot be created.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_ITables_Add_System_String_GrapeCity_Spreadsheet_YesNoGuess_System_String_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the table has headers, the first row of cells will be converted to Text , if not already set to text. The conversion will be based on the visible text for the cell. This means that if there is a date value with a Date format that changes with locale, the conversion to a list might produce different results depending on the current system locale. Moreover, if there are two cells in the header row that have the same visible text, an incremental Integer will be appended to make each column header unique.</p>
</div>


<a id="GrapeCity_Spreadsheet_ITables_Add_" data-uid="GrapeCity.Spreadsheet.ITables.Add*"></a>
<h4 id="GrapeCity_Spreadsheet_ITables_Add_GrapeCity_Spreadsheet_IRange_GrapeCity_Spreadsheet_YesNoGuess_System_String_System_String_" data-uid="GrapeCity.Spreadsheet.ITables.Add(GrapeCity.Spreadsheet.IRange,GrapeCity.Spreadsheet.YesNoGuess,System.String,System.String)">Add(IRange, YesNoGuess, string, string)</h4>
<div class="markdown level1 summary"><p>Creates the <a class="xref" href="GrapeCity.Spreadsheet.ITable.html">ITable</a> at the specified cell range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITable Add(IRange srcRange, YesNoGuess tableHasHeaders = YesNoGuess.Guess, string tableStyle = null, string name = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Add(srcRange As IRange, Optional tableHasHeaders As YesNoGuess = YesNoGuess.Guess, Optional tableStyle As String = Nothing, Optional name As String = Nothing) As ITable</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.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">srcRange</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a> objbect indicates the data source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html">YesNoGuess</a></td>
      <td><span class="parametername">tableHasHeaders</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html">YesNoGuess</a> constant that indicates whether the data has column labels. If the source range does not contain headers, Spread will automatically generate headers. Default value: <a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html#GrapeCity_Spreadsheet_YesNoGuess_Guess">Guess</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">tableStyle</span></td>
      <td><p>A string value indicates the table style. Default value is TableStyleMedium2.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>A string value indicates the table name. If you won't provide, table name will be generated automatically.</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.Spreadsheet.ITable.html">ITable</a></td>
      <td><p>A <span class="xref">GrapeCity.Spreadsheet.Table</span> value represents the created table. <code>null</code> if the table cannot be created.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_ITables_Add_GrapeCity_Spreadsheet_IRange_GrapeCity_Spreadsheet_YesNoGuess_System_String_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the table has headers, the first row of cells will be converted to Text , if not already set to text. The conversion will be based on the visible text for the cell. This means that if there is a date value with a Date format that changes with locale, the conversion to a list might produce different results depending on the current system locale. Moreover, if there are two cells in the header row that have the same visible text, an incremental Integer will be appended to make each column header unique.</p>
</div>
</div>
