# GrapeCity.Spreadsheet.CfRule.Apply

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_CfRule_Apply_" data-uid="GrapeCity.Spreadsheet.CfRule.Apply*">Apply Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_CfRule_Apply_" data-uid="GrapeCity.Spreadsheet.CfRule.Apply*"></a>
<h4 id="GrapeCity_Spreadsheet_CfRule_Apply_GrapeCity_Spreadsheet_Conditional_MatchData__GrapeCity_Spreadsheet_CfExecutedResult__" data-uid="GrapeCity.Spreadsheet.CfRule.Apply(GrapeCity.Spreadsheet.Conditional.MatchData@,GrapeCity.Spreadsheet.CfExecutedResult@)">Apply(ref MatchData, ref CfExecutedResult)</h4>
<div class="markdown level1 summary"><p>Applies the format of this conditional formatting rule to the format result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override sealed bool Apply(ref MatchData matchingData, ref CfExecutedResult result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected NotOverridable Overrides Function Apply(ByRef matchingData As MatchData, ByRef result As CfExecutedResult) As Boolean</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><span class="xref">MatchData</span></td>
      <td><span class="parametername">matchingData</span></td>
      <td><p>A <span class="xref">GrapeCity.Spreadsheet.Conditional.MatchData</span> value indicates the context matching data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.CfExecutedResult.html">CfExecutedResult</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a> value indicates the style formatting result.</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.boolean">bool</a></td>
      <td><p>true if successful;otherwise false</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="GrapeCity.Spreadsheet.CfExecutedResult.html">ConditionalObjects&lt;CfRule, ConditionalFormatting, CfExecutedResult&gt;.ConditionalItem.Apply(ref MatchData, ref CfExecutedResult)</a></div>
</div>
