# C1.Win.FlexGrid.ColumnCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_ColumnCollection_Add_" data-uid="C1.Win.FlexGrid.ColumnCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_ColumnCollection_Add_" data-uid="C1.Win.FlexGrid.ColumnCollection.Add*"></a>
<h4 id="C1_Win_FlexGrid_ColumnCollection_Add" data-uid="C1.Win.FlexGrid.ColumnCollection.Add">Add()</h4>
<div class="markdown level1 summary"><p>Appends a new <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> object to this collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Column Add()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add() As Column</code></pre>
</div>
<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="C1.Win.FlexGrid.Column.html">Column</a></td>
      <td><p>A reference to the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> that was added to the collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_ColumnCollection_Add_" data-uid="C1.Win.FlexGrid.ColumnCollection.Add*"></a>
<h4 id="C1_Win_FlexGrid_ColumnCollection_Add_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.Add(System.Int32)">Add(int)</h4>
<div class="markdown level1 summary"><p>Appends a given number of <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Add(int count)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Add(count As Integer)</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">count</span></td>
      <td><p>Number of columns to add to the collection.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_ColumnCollection_Add_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method adds the new columns to the end of the collection. To insert columns at specific
positions, use the <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Insert.html#C1_Win_FlexGrid_ColumnCollection_Insert_System_Int32_">Insert(int)</a> or <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.InsertRange.html#C1_Win_FlexGrid_ColumnCollection_InsertRange_System_Int32_System_Int32_">InsertRange(int, int)</a> methods.</p>
</div>
</div>
