# GrapeCity.Documents.Common.StructList-1.ForEach

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Common_StructList_1_ForEach_" data-uid="GrapeCity.Documents.Common.StructList`1.ForEach*">ForEach Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Common_StructList_1_ForEach_" data-uid="GrapeCity.Documents.Common.StructList`1.ForEach*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1_ForEach_GrapeCity_Documents_Common_StructAction__0__" data-uid="GrapeCity.Documents.Common.StructList`1.ForEach(GrapeCity.Documents.Common.StructAction{`0})">ForEach(StructAction&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Performs the specified action on each element of the <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ForEach(StructAction&lt;T&gt; action)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ForEach(action As StructAction(Of T))</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="GrapeCity.Documents.Common.StructAction-1.html">StructAction</a>&lt;T&gt;</td>
      <td><span class="parametername">action</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Common.StructAction-1.html">StructAction&lt;T&gt;</a> delegate to perform on each element of the <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
