# C1.Win.TreeView.C1TreeColumnCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TreeView_C1TreeColumnCollection_Add_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TreeView_C1TreeColumnCollection_Add_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add*"></a>
<h4 id="C1_Win_TreeView_C1TreeColumnCollection_Add_C1_Win_TreeView_C1TreeColumn_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add(C1.Win.TreeView.C1TreeColumn)">Add(C1TreeColumn)</h4>
<div class="markdown level1 summary"><p>Adds the new column of tree 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(C1TreeColumn treeColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Add(treeColumn As C1TreeColumn)</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="C1.Win.TreeView.C1TreeColumn.html">C1TreeColumn</a></td>
      <td><span class="parametername">treeColumn</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_TreeView_C1TreeColumnCollection_Add_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add*"></a>
<h4 id="C1_Win_TreeView_C1TreeColumnCollection_Add_System_String_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add(System.String)">Add(string)</h4>
<div class="markdown level1 summary"><p>Adds the new column of tree with specified name 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 C1TreeColumn Add(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(name As String) As C1TreeColumn</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">name</span></td>
      <td></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="C1.Win.TreeView.C1TreeColumn.html">C1TreeColumn</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_TreeView_C1TreeColumnCollection_Add_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add*"></a>
<h4 id="C1_Win_TreeView_C1TreeColumnCollection_Add_System_String_System_String_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add(System.String,System.String)">Add(string, string)</h4>
<div class="markdown level1 summary"><p>Adds the new column of tree with specified name and display field name 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 C1TreeColumn Add(string name, string displayFieldName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(name As String, displayFieldName As String) As C1TreeColumn</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">name</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">displayFieldName</span></td>
      <td></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="C1.Win.TreeView.C1TreeColumn.html">C1TreeColumn</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_TreeView_C1TreeColumnCollection_Add_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add*"></a>
<h4 id="C1_Win_TreeView_C1TreeColumnCollection_Add_System_String_System_String_System_String_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add(System.String,System.String,System.String)">Add(string, string, string)</h4>
<div class="markdown level1 summary"><p>Adds the new column of tree 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 C1TreeColumn Add(string name, string displayFieldName, string headerText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(name As String, displayFieldName As String, headerText As String) As C1TreeColumn</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">name</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">displayFieldName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">headerText</span></td>
      <td></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="C1.Win.TreeView.C1TreeColumn.html">C1TreeColumn</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
