# C1.Win.RulesManager.ItemRange.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_RulesManager_ItemRange__ctor_" data-uid="C1.Win.RulesManager.ItemRange.#ctor*">ItemRange Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_RulesManager_ItemRange__ctor_" data-uid="C1.Win.RulesManager.ItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_ItemRange__ctor" data-uid="C1.Win.RulesManager.ItemRange.#ctor">ItemRange()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.ItemRange.html">ItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ItemRange()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Win_RulesManager_ItemRange__ctor_" data-uid="C1.Win.RulesManager.ItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_ItemRange__ctor_C1_Win_RulesManager_ItemRange_" data-uid="C1.Win.RulesManager.ItemRange.#ctor(C1.Win.RulesManager.ItemRange)">ItemRange(ItemRange)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.ItemRange.html">ItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ItemRange(ItemRange prototype)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(prototype As ItemRange)</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="C1.Win.RulesManager.ItemRange.html">ItemRange</a></td>
      <td><span class="parametername">prototype</span></td>
      <td><p>Prototype</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_RulesManager_ItemRange__ctor_" data-uid="C1.Win.RulesManager.ItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_ItemRange__ctor_System_Int32_System_Int32_" data-uid="C1.Win.RulesManager.ItemRange.#ctor(System.Int32,System.Int32)">ItemRange(int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.ItemRange.html">ItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ItemRange(int first, int last)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(first As Integer, last 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">first</span></td>
      <td><p>Fist item index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">last</span></td>
      <td><p>Last item index.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_RulesManager_ItemRange__ctor_" data-uid="C1.Win.RulesManager.ItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_ItemRange__ctor_System_String_" data-uid="C1.Win.RulesManager.ItemRange.#ctor(System.String)">ItemRange(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.ItemRange.html">ItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ItemRange(string range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(range As String)</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.string">string</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>Range as a string.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_RulesManager_ItemRange__ctor_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The string format should be: &quot;{0}:{1}&quot;, where {0} is the FirstItem and {1} is the LastItem.</p>
</div>
<h5 id="C1_Win_RulesManager_ItemRange__ctor_System_String__examples">Examples</h5>
<p>ItemRange range = new ItemRange(&quot;1:100&quot;);</p>

</div>
