# GrapeCity.Spreadsheet.ISortField.ModifyKey

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_ISortField_ModifyKey_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey*">ModifyKey Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_ISortField_ModifyKey_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey*"></a>
<h4 id="GrapeCity_Spreadsheet_ISortField_ModifyKey_GrapeCity_Spreadsheet_IRange_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey(GrapeCity.Spreadsheet.IRange)">ModifyKey(IRange)</h4>
<div class="markdown level1 summary"><p>Modify the key value by which values are sorted in the field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ModifyKey(IRange key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ModifyKey(key As IRange)</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="GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>Specifies the key to be modified. <code class="paramref">key</code> refers to worksheet range.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_ISortField_ModifyKey_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey*"></a>
<h4 id="GrapeCity_Spreadsheet_ISortField_ModifyKey_GrapeCity_Spreadsheet_Reference_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey(GrapeCity.Spreadsheet.Reference)">ModifyKey(Reference)</h4>
<div class="markdown level1 summary"><p>Modify the key value by which values are sorted in the field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ModifyKey(Reference key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ModifyKey(key As Reference)</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="GrapeCity.Spreadsheet.Reference.html">Reference</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>Specifies the key to be modified. <code class="paramref">key</code> refers to worksheet range.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_ISortField_ModifyKey_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey*"></a>
<h4 id="GrapeCity_Spreadsheet_ISortField_ModifyKey_System_String_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey(System.String)">ModifyKey(string)</h4>
<div class="markdown level1 summary"><p>Modify the key value by which values are sorted in the field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ModifyKey(string key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ModifyKey(key 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">key</span></td>
      <td><p>Specifies the key to be modified. <code class="paramref">key</code> refers to worksheet range.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_ISortField_ModifyKey_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey*"></a>
<h4 id="GrapeCity_Spreadsheet_ISortField_ModifyKey_System_Int32_" data-uid="GrapeCity.Spreadsheet.ISortField.ModifyKey(System.Int32)">ModifyKey(int)</h4>
<div class="markdown level1 summary"><p>Modify the key value by which values are sorted in the field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ModifyKey(int key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ModifyKey(key 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">key</span></td>
      <td><p>Specifies the key to be modified. <code class="paramref">key</code> refers to the sort range.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
