# C1.Framework.XViewLight.GetNextElement

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_XViewLight_GetNextElement_" data-uid="C1.Framework.XViewLight.GetNextElement*">GetNextElement Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_XViewLight_GetNextElement_" data-uid="C1.Framework.XViewLight.GetNextElement*"></a>
<h4 id="C1_Framework_XViewLight_GetNextElement_C1_Framework_Element_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.Framework.XViewLight.GetNextElement(C1.Framework.Element,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">GetNextElement(Element, bool, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Gets the next <a class="xref" href="C1.Framework.XViewLight.Element.html#C1_Framework_XViewLight_Element">Element</a> given a start <a class="xref" href="C1.Framework.XViewLight.Element.html#C1_Framework_XViewLight_Element">Element</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual Element GetNextElement(Element e, bool forward, bool tabStopOnly, bool nested, bool wrap)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function GetNextElement(e As Element, forward As Boolean, tabStopOnly As Boolean, nested As Boolean, wrap As Boolean) As Element</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="C1.Framework.Element.html">Element</a></td>
      <td><span class="parametername">e</span></td>
      <td><p><a class="xref" href="C1.Framework.XViewLight.Element.html#C1_Framework_XViewLight_Element">Element</a> where to start.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">forward</span></td>
      <td><p><b>true</b> to move forward in the tab order; <b>false</b> to move backward in the tab order.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">tabStopOnly</span></td>
      <td><p><b>true</b> to ignore elements with the TabStop property set to <b>false</b>; otherwise, <b>false</b>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">nested</span></td>
      <td><p><b>true</b> to include nested (children of child elements) child elements; otherwise, <b>false.</b></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">wrap</span></td>
      <td><p><b>true</b> to continue searching from the first element in the tab order after the last element has been reached; otherwise, <b>false</b>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Framework.Element.html">Element</a></td>
      <td><p>The next (or previous) <a class="xref" href="C1.Framework.XViewLight.Element.html#C1_Framework_XViewLight_Element">Element</a> in the tab order, or null if no element was found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
