# FarPoint.Win.Elements.ElementEnumerator.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Elements_ElementEnumerator__ctor_" data-uid="FarPoint.Win.Elements.ElementEnumerator.#ctor*">ElementEnumerator Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Elements_ElementEnumerator__ctor_" data-uid="FarPoint.Win.Elements.ElementEnumerator.#ctor*"></a>
<h4 id="FarPoint_Win_Elements_ElementEnumerator__ctor_FarPoint_Win_Elements_" data-uid="FarPoint.Win.Elements.ElementEnumerator.#ctor(FarPoint.Win.Elements)">ElementEnumerator(Elements)</h4>
<div class="markdown level1 summary"><p>Creates an enumerator for the elements in the specified array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ElementEnumerator(Elements elementArray)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(elementArray As Elements)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Elements.html">Elements</a></td>
      <td><span class="parametername">elementArray</span></td>
      <td><p>Elements array</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Elements_ElementEnumerator__ctor_" data-uid="FarPoint.Win.Elements.ElementEnumerator.#ctor*"></a>
<h4 id="FarPoint_Win_Elements_ElementEnumerator__ctor_FarPoint_Win_Elements_System_Boolean_System_Int32_System_Int32_" data-uid="FarPoint.Win.Elements.ElementEnumerator.#ctor(FarPoint.Win.Elements,System.Boolean,System.Int32,System.Int32)">ElementEnumerator(Elements, bool, int, int)</h4>
<div class="markdown level1 summary"><p>Creates an enumerator for the elements in the specified array with the specified start and end.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ElementEnumerator(Elements elementArray, bool returnIndex, int startIndex, int endIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(elementArray As Elements, returnIndex As Boolean, startIndex As Integer, endIndex As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Elements.html">Elements</a></td>
      <td><span class="parametername">elementArray</span></td>
      <td><p>Elements array</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">returnIndex</span></td>
      <td><p>Whether to return the index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">startIndex</span></td>
      <td><p>Starting index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">endIndex</span></td>
      <td><p>Ending index</p>
</td>
    </tr>
  </tbody>
</table>
</div>
