# GrapeCity.Documents.Common.ReadOnlyStructList-1.ConvertAll

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Common_ReadOnlyStructList_1_ConvertAll_" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.ConvertAll*">ConvertAll Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Common_ReadOnlyStructList_1_ConvertAll_" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.ConvertAll*"></a>
<h4 id="GrapeCity_Documents_Common_ReadOnlyStructList_1_ConvertAll__1_GrapeCity_Documents_Common_StructConverter__0___0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.ConvertAll``1(GrapeCity.Documents.Common.StructConverter{`0,``0})">ConvertAll&lt;TOutput&gt;(StructConverter&lt;T, TOutput&gt;)</h4>
<div class="markdown level1 summary"><p>Converts the elements in the current <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> to another type, and returns a list containing the converted elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StructList&lt;TOutput&gt; ConvertAll&lt;TOutput&gt;(StructConverter&lt;T, TOutput&gt; converter) where TOutput : struct</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ConvertAll(Of TOutput As Structure)(converter As StructConverter(Of T, TOutput)) As StructList(Of TOutput)</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.StructConverter-2.html">StructConverter</a>&lt;T, TOutput&gt;</td>
      <td><span class="parametername">converter</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Common.StructConverter-2.html">StructConverter&lt;TInput, TOutput&gt;</a> delegate that converts each element from one type to another type.</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="GrapeCity.Documents.Common.StructList-1.html">StructList</a>&lt;TOutput&gt;</td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a> of the target type containing the converted elements from the current <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">TOutput</span></td>
      <td><p>The type of the elements of the target array.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
