# C1.C1Preview.EventCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_EventCollection" data-uid="C1.C1Preview.EventCollection" class="text-break">EventCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents an <a class="xref" href="C1.C1Preview.OwnedCollection.html">OwnedCollection</a> that fires events when changing.</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"><a class="xref" href="C1.C1Preview.OwnedCollectionBase.html">OwnedCollectionBase</a></div>
    <div class="level3"><a class="xref" href="C1.C1Preview.OwnedCollection.html">OwnedCollection</a></div>
    <div class="level4"><span class="xref">EventCollection</span></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_EventCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class EventCollection : OwnedCollection, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class EventCollection
    Inherits OwnedCollection
    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_EventCollection__ctor_C1_C1Preview_ICollectionOwner_" data-uid="C1.C1Preview.EventCollection.#ctor(C1.C1Preview.ICollectionOwner)">
          <a class="xref" href="C1.C1Preview.EventCollection.-ctor.html#C1_C1Preview_EventCollection__ctor_C1_C1Preview_ICollectionOwner_">EventCollection(ICollectionOwner)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.EventCollection.html">EventCollection</a>.</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_EventCollection_OnClear" data-uid="C1.C1Preview.EventCollection.OnClear">
          <a class="xref" href="C1.C1Preview.EventCollection.OnClear.html#C1_C1Preview_EventCollection_OnClear">OnClear()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the collection is about to be cleared.
Fires the <a class="xref" href="C1.C1Preview.EventCollection.Changing.html">Changing</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EventCollection_OnClearComplete" data-uid="C1.C1Preview.EventCollection.OnClearComplete">
          <a class="xref" href="C1.C1Preview.EventCollection.OnClearComplete.html#C1_C1Preview_EventCollection_OnClearComplete">OnClearComplete()</a>
        </td>
        <td class="markdown level1 summary"><p>Called after the collection has been cleared.
Fires the <a class="xref" href="C1.C1Preview.EventCollection.Changed.html">Changed</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EventCollection_OnInsert_System_Int32_System_Object_" data-uid="C1.C1Preview.EventCollection.OnInsert(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.EventCollection.OnInsert.html#C1_C1Preview_EventCollection_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.
Fires the <a class="xref" href="C1.C1Preview.EventCollection.Changing.html">Changing</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EventCollection_OnInsertComplete_System_Int32_System_Object_" data-uid="C1.C1Preview.EventCollection.OnInsertComplete(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.EventCollection.OnInsertComplete.html#C1_C1Preview_EventCollection_OnInsertComplete_System_Int32_System_Object_">OnInsertComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called after an item has been inserted.
Fires the <a class="xref" href="C1.C1Preview.EventCollection.Changed.html">Changed</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EventCollection_OnRemove_System_Int32_System_Object_" data-uid="C1.C1Preview.EventCollection.OnRemove(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.EventCollection.OnRemove.html#C1_C1Preview_EventCollection_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.
Fires the <a class="xref" href="C1.C1Preview.EventCollection.Changing.html">Changing</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EventCollection_OnRemoveComplete_System_Int32_System_Object_" data-uid="C1.C1Preview.EventCollection.OnRemoveComplete(System.Int32,System.Object)">
          <a class="xref" href="C1.C1Preview.EventCollection.OnRemoveComplete.html#C1_C1Preview_EventCollection_OnRemoveComplete_System_Int32_System_Object_">OnRemoveComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called after an item has been removed.
Fires the <a class="xref" href="C1.C1Preview.EventCollection.Changed.html">Changed</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EventCollection_OnSet_System_Int32_System_Object_System_Object_" data-uid="C1.C1Preview.EventCollection.OnSet(System.Int32,System.Object,System.Object)">
          <a class="xref" href="C1.C1Preview.EventCollection.OnSet.html#C1_C1Preview_EventCollection_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.
Fires the <a class="xref" href="C1.C1Preview.EventCollection.Changing.html">Changing</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EventCollection_OnSetComplete_System_Int32_System_Object_System_Object_" data-uid="C1.C1Preview.EventCollection.OnSetComplete(System.Int32,System.Object,System.Object)">
          <a class="xref" href="C1.C1Preview.EventCollection.OnSetComplete.html#C1_C1Preview_EventCollection_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.
Fires the <a class="xref" href="C1.C1Preview.EventCollection.Changed.html">Changed</a> event.</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_C1Preview_EventCollection_Changed" data-uid="C1.C1Preview.EventCollection.Changed">
          <a class="xref" href="C1.C1Preview.EventCollection.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after a change has been made to the current collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EventCollection_Changing" data-uid="C1.C1Preview.EventCollection.Changing">
          <a class="xref" href="C1.C1Preview.EventCollection.Changing.html">Changing</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a change is about to be made to the current collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
