# C1.Win.TreeView.C1TreeNodeCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_TreeView_C1TreeNodeCollection" data-uid="C1.Win.TreeView.C1TreeNodeCollection" class="text-break">C1TreeNodeCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.Win.TreeView.C1TreeNode.html">C1TreeNode</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">C1TreeNodeCollection</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.C1TreeNode.html">C1TreeNode</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</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_C1TreeNodeCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1TreeNodeCollection : IEnumerable&lt;C1TreeNode&gt;, IList, ICollection, IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1TreeNodeCollection
    Implements IEnumerable(Of C1TreeNode), IList, ICollection, IEnumerable, INotifyCollectionChanged</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_C1TreeNodeCollection_Count" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Count">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Count.html#C1_Win_TreeView_C1TreeNodeCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of tree nodes contained in the <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.html">C1TreeNodeCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_IsReadOnly" data-uid="C1.Win.TreeView.C1TreeNodeCollection.IsReadOnly">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.IsReadOnly.html#C1_Win_TreeView_C1TreeNodeCollection_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.html">C1TreeNodeCollection</a> is read-only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_Item_System_Int32_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Item(System.Int32)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Item.html#C1_Win_TreeView_C1TreeNodeCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the tree node at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_Parent" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Parent">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Parent.html#C1_Win_TreeView_C1TreeNodeCollection_Parent">Parent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a parent node of this collection.</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_C1TreeNodeCollection_Add_C1_Win_TreeView_C1TreeNode_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Add(C1.Win.TreeView.C1TreeNode)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Add.html#C1_Win_TreeView_C1TreeNodeCollection_Add_C1_Win_TreeView_C1TreeNode_">Add(C1TreeNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an item to the <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.html">C1TreeNodeCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_Add_System_Object_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Add(System.Object)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Add.html#C1_Win_TreeView_C1TreeNodeCollection_Add_System_Object_">Add(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the new tree node with specified value to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_AddRange_System_Collections_Generic_IEnumerable_C1_Win_TreeView_C1TreeNode__" data-uid="C1.Win.TreeView.C1TreeNodeCollection.AddRange(System.Collections.Generic.IEnumerable{C1.Win.TreeView.C1TreeNode})">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.AddRange.html#C1_Win_TreeView_C1TreeNodeCollection_AddRange_System_Collections_Generic_IEnumerable_C1_Win_TreeView_C1TreeNode__">AddRange(IEnumerable&lt;C1TreeNode&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the collection of nodes to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_Clear" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Clear">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Clear.html#C1_Win_TreeView_C1TreeNodeCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all tree nodes from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_Contains_C1_Win_TreeView_C1TreeNode_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Contains(C1.Win.TreeView.C1TreeNode)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Contains.html#C1_Win_TreeView_C1TreeNodeCollection_Contains_C1_Win_TreeView_C1TreeNode_">Contains(C1TreeNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether an element is in the <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.html">C1TreeNodeCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_GetEnumerator" data-uid="C1.Win.TreeView.C1TreeNodeCollection.GetEnumerator">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.GetEnumerator.html#C1_Win_TreeView_C1TreeNodeCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.html">C1TreeNodeCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_IndexOf_C1_Win_TreeView_C1TreeNode_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.IndexOf(C1.Win.TreeView.C1TreeNode)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.IndexOf.html#C1_Win_TreeView_C1TreeNodeCollection_IndexOf_C1_Win_TreeView_C1TreeNode_">IndexOf(C1TreeNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified tree node and returns the zero-based index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_Insert_System_Int32_C1_Win_TreeView_C1TreeNode_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Insert(System.Int32,C1.Win.TreeView.C1TreeNode)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Insert.html#C1_Win_TreeView_C1TreeNodeCollection_Insert_System_Int32_C1_Win_TreeView_C1TreeNode_">Insert(int, C1TreeNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts treeview node into the <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.html">C1TreeNodeCollection</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_Move_System_Int32_System_Int32_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Move(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Move.html#C1_Win_TreeView_C1TreeNodeCollection_Move_System_Int32_System_Int32_">Move(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the node of tree at the specified index to a new location in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.OnCollectionChanged.html#C1_Win_TreeView_C1TreeNodeCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_">OnCollectionChanged(NotifyCollectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raise <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.CollectionChanged.html">CollectionChanged</a> event to any listeners.
Properties/methods modifying this <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.html">C1TreeNodeCollection</a> will raise
a collection changed event through this virtual method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_Remove_C1_Win_TreeView_C1TreeNode_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.Remove(C1.Win.TreeView.C1TreeNode)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.Remove.html#C1_Win_TreeView_C1TreeNodeCollection_Remove_C1_Win_TreeView_C1TreeNode_">Remove(C1TreeNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specified tree node from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_C1TreeNodeCollection_RemoveAt_System_Int32_" data-uid="C1.Win.TreeView.C1TreeNodeCollection.RemoveAt(System.Int32)">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.RemoveAt.html#C1_Win_TreeView_C1TreeNodeCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the tree node at the specified index of the collection.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_C1TreeNodeCollection_CollectionChanged" data-uid="C1.Win.TreeView.C1TreeNodeCollection.CollectionChanged">
          <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.CollectionChanged.html">CollectionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Win.TreeView.C1TreeNodeCollection.html">C1TreeNodeCollection</a> changes, either by adding or removing an item.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
