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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Common_StructList_1_AsReadOnly_" data-uid="GrapeCity.Documents.Common.StructList`1.AsReadOnly*">AsReadOnly Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Common_StructList_1_AsReadOnly_" data-uid="GrapeCity.Documents.Common.StructList`1.AsReadOnly*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1_AsReadOnly" data-uid="GrapeCity.Documents.Common.StructList`1.AsReadOnly">AsReadOnly()</h4>
<div class="markdown level1 summary"><p>Returns a read-only <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> wrapper for the current <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 ReadOnlyStructList&lt;T&gt; AsReadOnly()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AsReadOnly() As ReadOnlyStructList(Of T)</code></pre>
</div>
<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.ReadOnlyStructList-1.html">ReadOnlyStructList</a>&lt;T&gt;</td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> that acts as a read-only wrapper around the current <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
