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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Common_StructList_1__ctor_" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor*">StructList Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Common_StructList_1__ctor_" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1__ctor" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor">StructList()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a> class that is empty.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StructList()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Documents_Common_StructList_1__ctor_" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1__ctor_System_Int32_" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor(System.Int32)">StructList(int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a> class that is empty and has the specified initial capacity.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StructList(int capacity)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(capacity 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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">capacity</span></td>
      <td><p>The number of elements that the new list can initially store.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Common_StructList_1__ctor_" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1__ctor__0___System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor(`0[],System.Int32,System.Int32)">StructList(T[], int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a> class that contains elements copied from 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 StructList(T[] array, int arrayIndex, int count)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(array As T(), arrayIndex As Integer, count 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>T[]</td>
      <td><span class="parametername">array</span></td>
      <td><p>The array whose elements should be added to the <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">arrayIndex</span></td>
      <td><p>The zero-based index of the first element in the <code class="paramref">array</code> to add.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>The number of elements to add.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Common_StructList_1__ctor_" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1__ctor_System_Collections_Generic_IEnumerable__0__" data-uid="GrapeCity.Documents.Common.StructList`1.#ctor(System.Collections.Generic.IEnumerable{`0})">StructList(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a> class that contains elements copied from the specified collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StructList(IEnumerable&lt;T&gt; collection)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(collection As IEnumerable(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="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
      <td><span class="parametername">collection</span></td>
      <td><p>The collection whose elements are copied to the new list.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
