# GrapeCity.Documents.Excel.ITableColumn.Index

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_ITableColumn_Index_" data-uid="GrapeCity.Documents.Excel.ITableColumn.Index*">Index Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_ITableColumn_Index_" data-uid="GrapeCity.Documents.Excel.ITableColumn.Index*"></a>
<h4 id="GrapeCity_Documents_Excel_ITableColumn_Index" data-uid="GrapeCity.Documents.Excel.ITableColumn.Index">Index</h4>
<div class="markdown level1 summary"><p>Gets the zero-based index of this table column within the <a class="xref" href="GrapeCity.Documents.Excel.ITableColumns.html">ITableColumns</a> collection.</p>
<p>
The index reflects the current position of the column in its parent
<a class="xref" href="GrapeCity.Documents.Excel.ITable.html">ITable</a>.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">int Index { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">ReadOnly Property Index As Integer</code></pre>
</div>
<h5 id="GrapeCity_Documents_Excel_ITableColumn_Index_examples">Examples</h5>
<pre><code class="lang-csharp">worksheet.Range["A1:B3"].Value = new object[,] {
    {"Name", "Value"},
    {"A", 100},
    {"B", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
int index = table.Columns[1].Index;</code></pre>

</div>
