# GrapeCity.Spreadsheet.CfRule.ApplyFormat

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_CfRule_ApplyFormat_" data-uid="GrapeCity.Spreadsheet.CfRule.ApplyFormat*">ApplyFormat Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_CfRule_ApplyFormat_" data-uid="GrapeCity.Spreadsheet.CfRule.ApplyFormat*"></a>
<h4 id="GrapeCity_Spreadsheet_CfRule_ApplyFormat_GrapeCity_Spreadsheet_Conditional_MatchData__GrapeCity_Spreadsheet_StyleFormat__" data-uid="GrapeCity.Spreadsheet.CfRule.ApplyFormat(GrapeCity.Spreadsheet.Conditional.MatchData@,GrapeCity.Spreadsheet.StyleFormat@)">ApplyFormat(ref MatchData, ref StyleFormat)</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 virtual void ApplyFormat(ref MatchData matchData, ref StyleFormat result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub ApplyFormat(ByRef matchData As MatchData, ByRef result As StyleFormat)</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">matchData</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.StyleFormat.html">StyleFormat</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>
</div>
