# GrapeCity.Spreadsheet.ITableColumns.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_ITableColumns_Add_" data-uid="GrapeCity.Spreadsheet.ITableColumns.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_ITableColumns_Add_" data-uid="GrapeCity.Spreadsheet.ITableColumns.Add*"></a>
<h4 id="GrapeCity_Spreadsheet_ITableColumns_Add_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.ITableColumns.Add(System.Int32,System.Int32)">Add(int, int)</h4>
<div class="markdown level1 summary"><p>Adds a new column to the table object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITableColumn Add(int position = -1, int count = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Add(Optional position As Integer = -1, Optional count As Integer = 1) As ITableColumn</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">position</span></td>
      <td><p>An integer value indicates the relative position of the new column that starts at 1. The previous column at this position is shifted outward.</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>The total number of new columns.</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.ITableColumn.html">ITableColumn</a></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.ITableColumn.html">ITableColumn</a> object that represents the new column.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_ITableColumns_Add_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If <code class="paramref">position</code> is not specified, a new rightmost column is added. A name for the column is automatically generated. The name of the new column can be changed after the column is added.</p>
</div>
</div>
