# C1.Win.TreeView.C1TreeColumnCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_TreeView_C1TreeColumnCollection" data-uid="C1.Win.TreeView.C1TreeColumnCollection" class="text-break">C1TreeColumnCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.Win.TreeView.C1TreeColumn.html">C1TreeColumn</a> objects.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">C1TreeColumnCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.Win.TreeView.C1TreeColumn.html">C1TreeColumn</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.TreeView.html">C1.Win.TreeView</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.TreeView.10.dll</h6>
  <h5 id="C1_Win_TreeView_C1TreeColumnCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1TreeColumnCollection : IEnumerable&lt;C1TreeColumn&gt;, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1TreeColumnCollection
    Implements IEnumerable(Of C1TreeColumn), IList, ICollection, IEnumerable</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_Count" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Count">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Count.html#C1_Win_TreeView_C1TreeColumnCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of columns of tree contained in the <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.html">C1TreeColumnCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_IsSynchronized" data-uid="C1.Win.TreeView.C1TreeColumnCollection.IsSynchronized">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.IsSynchronized.html#C1_Win_TreeView_C1TreeColumnCollection_IsSynchronized">IsSynchronized</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_Item_System_Int32_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Item(System.Int32)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Item.html#C1_Win_TreeView_C1TreeColumnCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column of tree at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_SyncRoot" data-uid="C1.Win.TreeView.C1TreeColumnCollection.SyncRoot">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.SyncRoot.html#C1_Win_TreeView_C1TreeColumnCollection_SyncRoot">SyncRoot</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an object that can be used to synchronize access to the System.Collections.ICollection.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_Add_C1_Win_TreeView_C1TreeColumn_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add(C1.Win.TreeView.C1TreeColumn)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Add.html#C1_Win_TreeView_C1TreeColumnCollection_Add_C1_Win_TreeView_C1TreeColumn_">Add(C1TreeColumn)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the new column of tree to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_Add_System_String_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add(System.String)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Add.html#C1_Win_TreeView_C1TreeColumnCollection_Add_System_String_">Add(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the new column of tree with specified name to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_Add_System_String_System_String_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Add(System.String,System.String)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Add.html#C1_Win_TreeView_C1TreeColumnCollection_Add_System_String_System_String_">Add(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the new column of tree with specified name and display field name to the collection.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Add.html#C1_Win_TreeView_C1TreeColumnCollection_Add_System_String_System_String_System_String_">Add(string, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the new column of tree to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_Clear" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Clear">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Clear.html#C1_Win_TreeView_C1TreeColumnCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all columns of tree from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_Contains_C1_Win_TreeView_C1TreeColumn_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Contains(C1.Win.TreeView.C1TreeColumn)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Contains.html#C1_Win_TreeView_C1TreeColumnCollection_Contains_C1_Win_TreeView_C1TreeColumn_">Contains(C1TreeColumn)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether an element is in the <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.html">C1TreeColumnCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_CopyTo_System_Array_System_Int32_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.CopyTo(System.Array,System.Int32)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.CopyTo.html#C1_Win_TreeView_C1TreeColumnCollection_CopyTo_System_Array_System_Int32_">CopyTo(Array, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the entire C1.Win.TreeView.C1TreeColumnCollection to a one-dimensional array, starting at the specified index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_GetEnumerator" data-uid="C1.Win.TreeView.C1TreeColumnCollection.GetEnumerator">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.GetEnumerator.html#C1_Win_TreeView_C1TreeColumnCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.html">C1TreeColumnCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_IndexOf_C1_Win_TreeView_C1TreeColumn_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.IndexOf(C1.Win.TreeView.C1TreeColumn)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.IndexOf.html#C1_Win_TreeView_C1TreeColumnCollection_IndexOf_C1_Win_TreeView_C1TreeColumn_">IndexOf(C1TreeColumn)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified column and returns the zero-based index of the first occurrence within the entire <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.html">C1TreeColumnCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_Remove_C1_Win_TreeView_C1TreeColumn_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.Remove(C1.Win.TreeView.C1TreeColumn)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.Remove.html#C1_Win_TreeView_C1TreeColumnCollection_Remove_C1_Win_TreeView_C1TreeColumn_">Remove(C1TreeColumn)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specified column of tree from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeColumnCollection_RemoveAt_System_Int32_" data-uid="C1.Win.TreeView.C1TreeColumnCollection.RemoveAt(System.Int32)">
          <a class="xref" href="C1.Win.TreeView.C1TreeColumnCollection.RemoveAt.html#C1_Win_TreeView_C1TreeColumnCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the column of tree at the specified index of the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
