# FarPoint.Win.Elements

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Elements" data-uid="FarPoint.Win.Elements" class="text-break">Elements Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of elements.</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"><span class="xref">Elements</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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="FarPoint.Win.html">FarPoint.Win</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.dll</h6>
  <h5 id="FarPoint_Win_Elements_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Elements : ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Elements
    Implements 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="FarPoint_Win_Elements__ctor" data-uid="FarPoint.Win.Elements.#ctor">
          <a class="xref" href="FarPoint.Win.Elements.-ctor.html#FarPoint_Win_Elements__ctor">Elements()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a collection of elements.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Elements_elementNotifyList" data-uid="FarPoint.Win.Elements.elementNotifyList">
          <a class="xref" href="FarPoint.Win.Elements.elementNotifyList.html">elementNotifyList</a>
        </td>
        <td class="markdown level1 summary"><p>Array list of element notify</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_items" data-uid="FarPoint.Win.Elements.items">
          <a class="xref" href="FarPoint.Win.Elements.items.html">items</a>
        </td>
        <td class="markdown level1 summary"><p>Array list of items</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="FarPoint_Win_Elements_Count" data-uid="FarPoint.Win.Elements.Count">
          <a class="xref" href="FarPoint.Win.Elements.Count.html#FarPoint_Win_Elements_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Item_System_Int32_" data-uid="FarPoint.Win.Elements.Item(System.Int32)">
          <a class="xref" href="FarPoint.Win.Elements.Item.html#FarPoint_Win_Elements_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the element at the specified index within the 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="FarPoint_Win_Elements_Add_System_Object_" data-uid="FarPoint.Win.Elements.Add(System.Object)">
          <a class="xref" href="FarPoint.Win.Elements.Add.html#FarPoint_Win_Elements_Add_System_Object_">Add(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an element to the collection and returns its index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Add_System_Object_System_Boolean_" data-uid="FarPoint.Win.Elements.Add(System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Elements.Add.html#FarPoint_Win_Elements_Add_System_Object_System_Boolean_">Add(object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an element to the collection and returns its index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Clear" data-uid="FarPoint.Win.Elements.Clear">
          <a class="xref" href="FarPoint.Win.Elements.Clear.html#FarPoint_Win_Elements_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all the elements from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Contains_System_Object_" data-uid="FarPoint.Win.Elements.Contains(System.Object)">
          <a class="xref" href="FarPoint.Win.Elements.Contains.html#FarPoint_Win_Elements_Contains_System_Object_">Contains(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether an element is in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Find_System_String_" data-uid="FarPoint.Win.Elements.Find(System.String)">
          <a class="xref" href="FarPoint.Win.Elements.Find.html#FarPoint_Win_Elements_Find_System_String_">Find(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds an element in the collection that matches the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_FindByType_System_Type_System_String_" data-uid="FarPoint.Win.Elements.FindByType(System.Type,System.String)">
          <a class="xref" href="FarPoint.Win.Elements.FindByType.html#FarPoint_Win_Elements_FindByType_System_Type_System_String_">FindByType(Type, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds an element in the collection that matches the specified type and name.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_GetEnumerator" data-uid="FarPoint.Win.Elements.GetEnumerator">
          <a class="xref" href="FarPoint.Win.Elements.GetEnumerator.html#FarPoint_Win_Elements_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the array list of elements.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_GetEnumerator_System_Int32_System_Int32_" data-uid="FarPoint.Win.Elements.GetEnumerator(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.Elements.GetEnumerator.html#FarPoint_Win_Elements_GetEnumerator_System_Int32_System_Int32_">GetEnumerator(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the index and number of the array list of elements.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_IndexOf_System_Object_" data-uid="FarPoint.Win.Elements.IndexOf(System.Object)">
          <a class="xref" href="FarPoint.Win.Elements.IndexOf.html#FarPoint_Win_Elements_IndexOf_System_Object_">IndexOf(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Get the index of an element in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Insert_System_Int32_System_Object_" data-uid="FarPoint.Win.Elements.Insert(System.Int32,System.Object)">
          <a class="xref" href="FarPoint.Win.Elements.Insert.html#FarPoint_Win_Elements_Insert_System_Int32_System_Object_">Insert(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an element to the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Insert_System_Int32_System_Object_System_Boolean_" data-uid="FarPoint.Win.Elements.Insert(System.Int32,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Elements.Insert.html#FarPoint_Win_Elements_Insert_System_Int32_System_Object_System_Boolean_">Insert(int, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an element to the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Remove_System_Object_" data-uid="FarPoint.Win.Elements.Remove(System.Object)">
          <a class="xref" href="FarPoint.Win.Elements.Remove.html#FarPoint_Win_Elements_Remove_System_Object_">Remove(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified element from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_RemoveAt_System_Int32_" data-uid="FarPoint.Win.Elements.RemoveAt(System.Int32)">
          <a class="xref" href="FarPoint.Win.Elements.RemoveAt.html#FarPoint_Win_Elements_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified element (by index) from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_RemoveByName_System_String_" data-uid="FarPoint.Win.Elements.RemoveByName(System.String)">
          <a class="xref" href="FarPoint.Win.Elements.RemoveByName.html#FarPoint_Win_Elements_RemoveByName_System_String_">RemoveByName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified element (by name) from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_Replace_System_Object_System_Object_" data-uid="FarPoint.Win.Elements.Replace(System.Object,System.Object)">
          <a class="xref" href="FarPoint.Win.Elements.Replace.html#FarPoint_Win_Elements_Replace_System_Object_System_Object_">Replace(object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces an existing element with a new one.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_ReplaceAt_System_Int32_System_Object_" data-uid="FarPoint.Win.Elements.ReplaceAt(System.Int32,System.Object)">
          <a class="xref" href="FarPoint.Win.Elements.ReplaceAt.html#FarPoint_Win_Elements_ReplaceAt_System_Int32_System_Object_">ReplaceAt(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces an existing element index with a new one.</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="FarPoint_Win_Elements_ElementAddNotify" data-uid="FarPoint.Win.Elements.ElementAddNotify">
          <a class="xref" href="FarPoint.Win.Elements.ElementAddNotify.html">ElementAddNotify</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when an element is added.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Elements_ElementDeletingNotify" data-uid="FarPoint.Win.Elements.ElementDeletingNotify">
          <a class="xref" href="FarPoint.Win.Elements.ElementDeletingNotify.html">ElementDeletingNotify</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when an element is deleted.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
