# GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange*">ModifyAppliesToRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange*"></a>
<h4 id="GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_GrapeCity_Spreadsheet_Reference_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange(GrapeCity.Spreadsheet.Reference)">ModifyAppliesToRange(Reference)</h4>
<div class="markdown level1 summary"><p>Modifies an existing text conditional format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ModifyAppliesToRange(Reference range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ModifyAppliesToRange(range 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">range</span></td>
      <td><p>The range to which this formatting rule will be applied.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange*"></a>
<h4 id="GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_System_String_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange(System.String)">ModifyAppliesToRange(string)</h4>
<div class="markdown level1 summary"><p>Sets the cell range to which this formatting rule applies.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ModifyAppliesToRange(string range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ModifyAppliesToRange(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>The range to which this formatting rule will be applied.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The range must be in the A1 reference style and be entirely contained within the sheet that is the parent of the FormatConditions collection.</p>
</div>
</div>
