# C1.Framework.TreeCollection-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_TreeCollection_1" data-uid="C1.Framework.TreeCollection`1" class="text-break">TreeCollection&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a base collection for <a class="xref" href="C1.Framework.TreePanel.Columns.html#C1_Framework_TreePanel_Columns">Columns</a> and <a class="xref" href="C1.Framework.TreePanel.Rows.html#C1_Framework_TreePanel_Rows">Rows</a>.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;T&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1">ObservableCollection</a>&lt;T&gt;</div>
    <div class="level3"><span class="xref">TreeCollection&lt;T&gt;</span></div>
      <div class="level4"><a class="xref" href="C1.Framework.TreeColumnCollection.html">TreeColumnCollection</a></div>
      <div class="level4"><a class="xref" href="C1.Framework.TreeRowCollection.html">TreeRowCollection</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;T&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.generic.ireadonlylist-1">IReadOnlyList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_TreeCollection_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class TreeCollection&lt;T&gt; : ObservableCollection&lt;T&gt;, IList&lt;T&gt;, ICollection&lt;T&gt;, IList, ICollection, IReadOnlyList&lt;T&gt;, IReadOnlyCollection&lt;T&gt;, IEnumerable&lt;T&gt;, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged where T : Element, new()</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class TreeCollection(Of T As {Element, New})
    Inherits ObservableCollection(Of T)
    Implements IList(Of T), ICollection(Of T), IList, ICollection, IReadOnlyList(Of T), IReadOnlyCollection(Of T), IEnumerable(Of T), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_TreeCollection_1__ctor_C1_Framework_Element_" data-uid="C1.Framework.TreeCollection`1.#ctor(C1.Framework.Element)">
          <a class="xref" href="C1.Framework.TreeCollection-1.-ctor.html#C1_Framework_TreeCollection_1__ctor_C1_Framework_Element_">TreeCollection(Element)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.TreeCollection-1.html">TreeCollection&lt;T&gt;</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Framework_TreeCollection_1_Parent" data-uid="C1.Framework.TreeCollection`1.Parent">
          <a class="xref" href="C1.Framework.TreeCollection-1.Parent.html#C1_Framework_TreeCollection_1_Parent">Parent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the parent element 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_Framework_TreeCollection_1_Add" data-uid="C1.Framework.TreeCollection`1.Add">
          <a class="xref" href="C1.Framework.TreeCollection-1.Add.html#C1_Framework_TreeCollection_1_Add">Add()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and adds an object to the end of the <a class="xref" href="C1.Framework.TreeCollection-1.html">TreeCollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TreeCollection_1_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_" data-uid="C1.Framework.TreeCollection`1.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
          <a class="xref" href="C1.Framework.TreeCollection-1.OnCollectionChanged.html#C1_Framework_TreeCollection_1_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_">OnCollectionChanged(NotifyCollectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
