# GrapeCity.Spreadsheet.IRange.RemoveDuplicates

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IRange_RemoveDuplicates_" data-uid="GrapeCity.Spreadsheet.IRange.RemoveDuplicates*">RemoveDuplicates Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IRange_RemoveDuplicates_" data-uid="GrapeCity.Spreadsheet.IRange.RemoveDuplicates*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_RemoveDuplicates_System_Int32___GrapeCity_Spreadsheet_YesNoGuess_" data-uid="GrapeCity.Spreadsheet.IRange.RemoveDuplicates(System.Int32[],GrapeCity.Spreadsheet.YesNoGuess)">RemoveDuplicates(int[], YesNoGuess)</h4>
<div class="markdown level1 summary"><p>Removes duplicate values from a range of values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">int RemoveDuplicates(int[] columns = null, YesNoGuess header = YesNoGuess.No)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function RemoveDuplicates(Optional columns As Integer() = Nothing, Optional header As YesNoGuess = YesNoGuess.No) 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">columns</span></td>
      <td><p>Array of indexes of the columns that contain the duplicate information. Specify <code>null</code> if you want to remove duplicates in all columns.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html">YesNoGuess</a></td>
      <td><span class="parametername">header</span></td>
      <td><p>Specifies whether the first row contains header information. Specify <a class="xref" href="GrapeCity.Spreadsheet.YesNoGuess.html#GrapeCity_Spreadsheet_YesNoGuess_Guess">Guess</a> if you want Spread to attempt to determine the header.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>The total numbers of removed rows.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
