# CSJ2K.j2k.StringSpec.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_StringSpec__ctor_" data-uid="CSJ2K.j2k.StringSpec.#ctor*">StringSpec Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_StringSpec__ctor_" data-uid="CSJ2K.j2k.StringSpec.#ctor*"></a>
<h4 id="CSJ2K_j2k_StringSpec__ctor_System_Int32_System_Int32_System_Byte_" data-uid="CSJ2K.j2k.StringSpec.#ctor(System.Int32,System.Int32,System.Byte)">StringSpec(int, int, byte)</h4>
<div class="markdown level1 summary"><p>Constructs an empty 'StringSpec' with specified number of
tile and components. This constructor is called by the decoder.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StringSpec(int nt, int nc, byte type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(nt As Integer, nc As Integer, type As Byte)</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">nt</span></td>
      <td><p>Number of tiles</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">nc</span></td>
      <td><p>Number of components</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>the type of the specification module i.e. tile specific,
component specific or both.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="CSJ2K_j2k_StringSpec__ctor_" data-uid="CSJ2K.j2k.StringSpec.#ctor*"></a>
<h4 id="CSJ2K_j2k_StringSpec__ctor_System_Int32_System_Int32_System_Byte_System_String_System_String___CSJ2K_j2k_util_ParameterList_" data-uid="CSJ2K.j2k.StringSpec.#ctor(System.Int32,System.Int32,System.Byte,System.String,System.String[],CSJ2K.j2k.util.ParameterList)">StringSpec(int, int, byte, string, string[], ParameterList)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StringSpec(int nt, int nc, byte type, string optName, string[] list, ParameterList pl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(nt As Integer, nc As Integer, type As Byte, optName As String, list As String(), pl As ParameterList)</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">nt</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">nc</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a></td>
      <td><span class="parametername">type</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">optName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">list</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.util.ParameterList.html">ParameterList</a></td>
      <td><span class="parametername">pl</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
