# C1.C1Preview.OwnedCollectionBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_OwnedCollectionBase" data-uid="C1.C1Preview.OwnedCollectionBase" class="text-break">OwnedCollectionBase Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection with an owner object.
Notifies the owner of interesting events on the collection if the owner
supports the <span class="xref">C1.C1Preview.ICollectionOwner</span> 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.collectionbase">CollectionBase</a></div>
    <div class="level2"><span class="xref">OwnedCollectionBase</span></div>
      <div class="level3"><a class="xref" href="C1.C1Preview.OwnedCollection.html">OwnedCollection</a></div>
      <div class="level3"><a class="xref" href="C1.C1Preview.RenderFragmentCollection.html">RenderFragmentCollection</a></div>
      <div class="level3"><a class="xref" href="C1.C1Preview.StyleCollection.html">StyleCollection</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_OwnedCollectionBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class OwnedCollectionBase : CollectionBase, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class OwnedCollectionBase
    Inherits CollectionBase
    Implements IList, ICollection, IEnumerable</code></pre>
  </div>
  <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_C1Preview_OwnedCollectionBase__ctor" data-uid="C1.C1Preview.OwnedCollectionBase.#ctor">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.-ctor.html#C1_C1Preview_OwnedCollectionBase__ctor">OwnedCollectionBase()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.OwnedCollectionBase.html">OwnedCollectionBase</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase__ctor_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.#ctor(System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.-ctor.html#C1_C1Preview_OwnedCollectionBase__ctor_System_Object_">OwnedCollectionBase(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.OwnedCollectionBase.html">OwnedCollectionBase</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_C1Preview_OwnedCollectionBase_Owner" data-uid="C1.C1Preview.OwnedCollectionBase.Owner">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.Owner.html#C1_C1Preview_OwnedCollectionBase_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the owner of 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_C1Preview_OwnedCollectionBase_AddInt_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.AddInt(System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.AddInt.html#C1_C1Preview_OwnedCollectionBase_AddInt_System_Object_">AddInt(object)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_AssignFrom_C1_C1Preview_OwnedCollectionBase_" data-uid="C1.C1Preview.OwnedCollectionBase.AssignFrom(C1.C1Preview.OwnedCollectionBase)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.AssignFrom.html#C1_C1Preview_OwnedCollectionBase_AssignFrom_C1_C1Preview_OwnedCollectionBase_">AssignFrom(OwnedCollectionBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the current collection, and copies the items from another one.
The items are copied by cloning, and must support the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a>
interface (if an item that does not support is encountered, an exception occurs).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_Exchange_System_Int32_System_Int32_" data-uid="C1.C1Preview.OwnedCollectionBase.Exchange(System.Int32,System.Int32)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.Exchange.html#C1_C1Preview_OwnedCollectionBase_Exchange_System_Int32_System_Int32_">Exchange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Swap two items in collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_GetByIndex_System_Int32_" data-uid="C1.C1Preview.OwnedCollectionBase.GetByIndex(System.Int32)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.GetByIndex.html#C1_C1Preview_OwnedCollectionBase_GetByIndex_System_Int32_">GetByIndex(int)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_IndexOf_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.IndexOf(System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.IndexOf.html#C1_C1Preview_OwnedCollectionBase_IndexOf_System_Object_">IndexOf(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified Object and returns the zero-based index
of the first occurrence within the entire collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_InsertInt_System_Int32_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.InsertInt(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.InsertInt.html#C1_C1Preview_OwnedCollectionBase_InsertInt_System_Int32_System_Object_">InsertInt(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_OnClear" data-uid="C1.C1Preview.OwnedCollectionBase.OnClear">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.OnClear.html#C1_C1Preview_OwnedCollectionBase_OnClear">OnClear()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the collection is about to be cleared.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_OnClearComplete" data-uid="C1.C1Preview.OwnedCollectionBase.OnClearComplete">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.OnClearComplete.html#C1_C1Preview_OwnedCollectionBase_OnClearComplete">OnClearComplete()</a>
        </td>
        <td class="markdown level1 summary"><p>Called after the collection has been cleared.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_OnInsert_System_Int32_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.OnInsert(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.OnInsert.html#C1_C1Preview_OwnedCollectionBase_OnInsert_System_Int32_System_Object_">OnInsert(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when an item is about to be iserted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_OnInsertComplete_System_Int32_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.OnInsertComplete(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.OnInsertComplete.html#C1_C1Preview_OwnedCollectionBase_OnInsertComplete_System_Int32_System_Object_">OnInsertComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called after an item has been inserted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_OnRemove_System_Int32_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.OnRemove(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.OnRemove.html#C1_C1Preview_OwnedCollectionBase_OnRemove_System_Int32_System_Object_">OnRemove(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when an item is about to be removed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_OnRemoveComplete_System_Int32_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.OnRemoveComplete(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.OnRemoveComplete.html#C1_C1Preview_OwnedCollectionBase_OnRemoveComplete_System_Int32_System_Object_">OnRemoveComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called after an item has been removed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_OnSet_System_Int32_System_Object_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.OnSet(System.Int32,System.Object,System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.OnSet.html#C1_C1Preview_OwnedCollectionBase_OnSet_System_Int32_System_Object_System_Object_">OnSet(int, object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when an item is about to be set.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_OnSetComplete_System_Int32_System_Object_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.OnSetComplete(System.Int32,System.Object,System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.OnSetComplete.html#C1_C1Preview_OwnedCollectionBase_OnSetComplete_System_Int32_System_Object_System_Object_">OnSetComplete(int, object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called after an item has been set.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_RemoveInt_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.RemoveInt(System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.RemoveInt.html#C1_C1Preview_OwnedCollectionBase_RemoveInt_System_Object_">RemoveInt(object)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OwnedCollectionBase_SetByIndex_System_Int32_System_Object_" data-uid="C1.C1Preview.OwnedCollectionBase.SetByIndex(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.OwnedCollectionBase.SetByIndex.html#C1_C1Preview_OwnedCollectionBase_SetByIndex_System_Int32_System_Object_">SetByIndex(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
