# GrapeCity.Documents.Common.OwnedCollectionBase-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_OwnedCollectionBase_1" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1" class="text-break">OwnedCollectionBase&lt;TItem&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Base collection implementing IOwnedObject interface.</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;TItem&gt;</div>
    <div class="level2"><span class="xref">OwnedCollectionBase&lt;TItem&gt;</span></div>
      <div class="level3"><a class="xref" href="GrapeCity.Documents.Common.OwnedCollection-1.html">OwnedCollection&lt;TItem&gt;</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;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="GrapeCity.Documents.Common.IOwnedObject.html">IOwnedObject</a></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="GrapeCity.Documents.Common.html">GrapeCity.Documents.Common</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Common_OwnedCollectionBase_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class OwnedCollectionBase&lt;TItem&gt; : Collection&lt;TItem&gt;, IList&lt;TItem&gt;, ICollection&lt;TItem&gt;, IReadOnlyList&lt;TItem&gt;, IReadOnlyCollection&lt;TItem&gt;, IEnumerable&lt;TItem&gt;, IOwnedObject, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class OwnedCollectionBase(Of TItem)
    Inherits Collection(Of TItem)
    Implements IList(Of TItem), ICollection(Of TItem), IReadOnlyList(Of TItem), IReadOnlyCollection(Of TItem), IEnumerable(Of TItem), IOwnedObject, IList, ICollection, IEnumerable</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">TItem</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="GrapeCity_Documents_Common_OwnedCollectionBase_1__ctor" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.#ctor">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.-ctor.html#GrapeCity_Documents_Common_OwnedCollectionBase_1__ctor">OwnedCollectionBase()</a>
        </td>
        <td class="markdown level1 summary"></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="GrapeCity_Documents_Common_OwnedCollectionBase_1_Changed" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.Changed">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.Changed.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_Changed">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the collection was changed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_Owner" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.Owner">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.Owner.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a collection owner.</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="GrapeCity_Documents_Common_OwnedCollectionBase_1_AddRange_System_Collections_Generic_IEnumerable__0__" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.AddRange(System.Collections.Generic.IEnumerable{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.AddRange.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_AddRange_System_Collections_Generic_IEnumerable__0__">AddRange(IEnumerable&lt;TItem&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds all items from <code class="paramref">items</code> to this collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_AddRange_System_Collections_IEnumerable_" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.AddRange(System.Collections.IEnumerable)">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.AddRange.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_AddRange_System_Collections_IEnumerable_">AddRange(IEnumerable)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds all items from <code class="paramref">items</code> to this collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_ClearItems" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.ClearItems">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.ClearItems.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_InsertItem_System_Int32__0_" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.InsertItem(System.Int32,`0)">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.InsertItem.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_InsertItem_System_Int32__0_">InsertItem(int, TItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_OnChanged" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.OnChanged">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.OnChanged.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_OnChanged">OnChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when collection is changed, sets <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.Changed.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_Changed">Changed</a> to true.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_RemoveItem_System_Int32_" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.RemoveItem(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.RemoveItem.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_SetItem_System_Int32__0_" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.SetItem(System.Int32,`0)">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.SetItem.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_SetItem_System_Int32__0_">SetItem(int, TItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_SetOwner_System_Object_" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.SetOwner(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.SetOwner.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_SetOwner_System_Object_">SetOwner(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the owner of the current object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_Sort_System_Collections_Generic_IComparer__0__" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.Sort(System.Collections.Generic.IComparer{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.Sort.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_Sort_System_Collections_Generic_IComparer__0__">Sort(IComparer&lt;TItem&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the elements in the entire collection using the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icomparer-1">IComparer&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_Sort_System_Comparison__0__" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.Sort(System.Comparison{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.Sort.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_Sort_System_Comparison__0__">Sort(Comparison&lt;TItem&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the elements in the entire collection using the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.comparison-1">Comparison&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollectionBase_1_Sort_System_Int32_System_Int32_System_Collections_Generic_IComparer__0__" data-uid="GrapeCity.Documents.Common.OwnedCollectionBase`1.Sort(System.Int32,System.Int32,System.Collections.Generic.IComparer{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.Sort.html#GrapeCity_Documents_Common_OwnedCollectionBase_1_Sort_System_Int32_System_Int32_System_Collections_Generic_IComparer__0__">Sort(int, int, IComparer&lt;TItem&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the elements in a range of elements using the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icomparer-1">IComparer&lt;T&gt;</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
