# C1.Win.RulesManager.CustomItemRange.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_RulesManager_CustomItemRange__ctor_" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor*">CustomItemRange Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_RulesManager_CustomItemRange__ctor_" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_CustomItemRange__ctor" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor">CustomItemRange()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.CustomItemRange.html">CustomItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CustomItemRange()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Win_RulesManager_CustomItemRange__ctor_" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_CustomItemRange__ctor_C1_Win_RulesManager_CustomItemRange_" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor(C1.Win.RulesManager.CustomItemRange)">CustomItemRange(CustomItemRange)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.CustomItemRange.html">CustomItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CustomItemRange(CustomItemRange prototype)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(prototype As CustomItemRange)</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.CustomItemRange.html">CustomItemRange</a></td>
      <td><span class="parametername">prototype</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_RulesManager_CustomItemRange__ctor_" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_CustomItemRange__ctor_System_Int32_System_Int32_System_Collections_Generic_IEnumerable_System_String__" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor(System.Int32,System.Int32,System.Collections.Generic.IEnumerable{System.String})">CustomItemRange(int, int, IEnumerable&lt;string&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.CustomItemRange.html">CustomItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CustomItemRange(int first, int last, IEnumerable&lt;string&gt; fields)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(first As Integer, last As Integer, fields As IEnumerable(Of 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.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>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">fields</span></td>
      <td><p>Fields name collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_RulesManager_CustomItemRange__ctor_" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_CustomItemRange__ctor_System_Int32_System_Int32_System_String___" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor(System.Int32,System.Int32,System.String[])">CustomItemRange(int, int, params string[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.CustomItemRange.html">CustomItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CustomItemRange(int first, int last, params string[] fields)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(first As Integer, last As Integer, ParamArray fields 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.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>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">fields</span></td>
      <td><p>Array of the fields name.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_RulesManager_CustomItemRange__ctor_" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor*"></a>
<h4 id="C1_Win_RulesManager_CustomItemRange__ctor_System_String_" data-uid="C1.Win.RulesManager.CustomItemRange.#ctor(System.String)">CustomItemRange(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.CustomItemRange.html">CustomItemRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CustomItemRange(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_CustomItemRange__ctor_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The string format should be: &quot;{0}:{1}:[{1}],[{2}]...&quot;, where {0} is the FirstItem,
{1} is the LastItem, and {1},{2}... is the field names.</p>
</div>
<h5 id="C1_Win_RulesManager_CustomItemRange__ctor_System_String__examples">Examples</h5>
<p>CustomItemRange range = new CustomItemRange(&quot;1:100:[Field1],[Field2],[Field3]&quot;);</p>

</div>
