# C1.C1Preview.TableVectorCollection.Count

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_TableVectorCollection_Count_" data-uid="C1.C1Preview.TableVectorCollection.Count*">Count Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_TableVectorCollection_Count_" data-uid="C1.C1Preview.TableVectorCollection.Count*"></a>
<h4 id="C1_C1Preview_TableVectorCollection_Count" data-uid="C1.C1Preview.TableVectorCollection.Count">Count</h4>
<div class="markdown level1 summary"><p>Gets or sets the logical count of vectors (rows or columns) in the current collection.
Setting this property to <b>-1</b> (which is the default) ensures that <b>Count</b>
is calculated automatically.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Count { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Count As Integer</code></pre>
</div>
<h5 id="C1_C1Preview_TableVectorCollection_Count_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;xref href=&quot;C1.C1Preview.C1PrintDocument&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; tables are logically infinite. Simply accessing an element
</code></pre>
<p>at any position expands the table to include that position. Hence by default the <b>Count</b>
property returns the maximum row or column number that has been accessed so far.
Assigning a non-negative value to this property allows to increase or decrease the number of rows or columns
(if the number of vectors is decreased, elements with greater indices are cleared).</p>
</div>
</div>
