# GrapeCity.Documents.Common.OwnedCollection-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_OwnedCollection_1" data-uid="GrapeCity.Documents.Common.OwnedCollection`1" class="text-break">OwnedCollection&lt;TItem&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Base class for collection containing items supporting IOwnedObject interface.
Collection updates Owner property of items.</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"><a class="xref" href="GrapeCity.Documents.Common.OwnedCollectionBase-1.html">OwnedCollectionBase</a>&lt;TItem&gt;</div>
    <div class="level3"><span class="xref">OwnedCollection&lt;TItem&gt;</span></div>
      <div class="level4"><a class="xref" href="GrapeCity.Documents.Common.OwnedKeyedCollection-2.html">OwnedKeyedCollection&lt;TKey, 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_OwnedCollection_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class OwnedCollection&lt;TItem&gt; : OwnedCollectionBase&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 where TItem : IOwnedObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class OwnedCollection(Of TItem As IOwnedObject)
    Inherits OwnedCollectionBase(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_OwnedCollection_1__ctor" data-uid="GrapeCity.Documents.Common.OwnedCollection`1.#ctor">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollection-1.-ctor.html#GrapeCity_Documents_Common_OwnedCollection_1__ctor">OwnedCollection()</a>
        </td>
        <td class="markdown level1 summary"></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_OwnedCollection_1_ClearItems" data-uid="GrapeCity.Documents.Common.OwnedCollection`1.ClearItems">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollection-1.ClearItems.html#GrapeCity_Documents_Common_OwnedCollection_1_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollection_1_InsertItem_System_Int32__0_" data-uid="GrapeCity.Documents.Common.OwnedCollection`1.InsertItem(System.Int32,`0)">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollection-1.InsertItem.html#GrapeCity_Documents_Common_OwnedCollection_1_InsertItem_System_Int32__0_">InsertItem(int, TItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollection_1_RemoveItem_System_Int32_" data-uid="GrapeCity.Documents.Common.OwnedCollection`1.RemoveItem(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollection-1.RemoveItem.html#GrapeCity_Documents_Common_OwnedCollection_1_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OwnedCollection_1_SetItem_System_Int32__0_" data-uid="GrapeCity.Documents.Common.OwnedCollection`1.SetItem(System.Int32,`0)">
          <a class="xref" href="GrapeCity.Documents.Common.OwnedCollection-1.SetItem.html#GrapeCity_Documents_Common_OwnedCollection_1_SetItem_System_Int32__0_">SetItem(int, TItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
