# C1.Win.RulesManager.FieldRange.SetRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_RulesManager_FieldRange_SetRange_" data-uid="C1.Win.RulesManager.FieldRange.SetRange*">SetRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_RulesManager_FieldRange_SetRange_" data-uid="C1.Win.RulesManager.FieldRange.SetRange*"></a>
<h4 id="C1_Win_RulesManager_FieldRange_SetRange_System_Int32_System_Int32_System_String___" data-uid="C1.Win.RulesManager.FieldRange.SetRange(System.Int32,System.Int32,System.String[])">SetRange(int, int, params string[])</h4>
<div class="markdown level1 summary"><p>Set a range of items.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetRange(int firstItem, int lastItem, params string[] fields)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetRange(firstItem As Integer, lastItem 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">firstItem</span></td>
      <td><p>The first item index in the range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">lastItem</span></td>
      <td><p>The last item index in the range.</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>Fields array.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Win.RulesManager.IItemRange.SetRange.html#C1_Win_RulesManager_IItemRange_SetRange_System_Int32_System_Int32_System_String___">IItemRange.SetRange(int, int, params string[])</a></div>
</div>
