# GrapeCity.Spreadsheet.CfRule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_CfRule" data-uid="GrapeCity.Spreadsheet.CfRule" class="text-break">CfRule Class
</h1>
  <div class="markdown level0 summary"><p>Represents a conditional formatting rule.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ConditionalItem</span></div>
    <div class="level2"><span class="xref">ConditionalObjects</span>&lt;<a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a>, <span class="xref">ConditionalFormatting</span>, <a class="xref" href="GrapeCity.Spreadsheet.CfExecutedResult.html">CfExecutedResult</a>&gt;.<a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">ConditionalItem</a></div>
    <div class="level3"><span class="xref">CfRule</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.html">GrapeCity.Spreadsheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_CfRule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class CfRule : ConditionalObjects&lt;CfRule, ConditionalFormatting, CfExecutedResult&gt;.ConditionalItem</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class CfRule
    Inherits ConditionalObjects(Of CfRule, ConditionalFormatting, CfExecutedResult).ConditionalItem</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule__ctor_GrapeCity_Spreadsheet_CfRule_GrapeCity_CalcEngine_FormulaEngine_GrapeCity_CalcEngine_FormulaEngine_" data-uid="GrapeCity.Spreadsheet.CfRule.#ctor(GrapeCity.Spreadsheet.CfRule,GrapeCity.CalcEngine.FormulaEngine,GrapeCity.CalcEngine.FormulaEngine)">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.-ctor.html#GrapeCity_Spreadsheet_CfRule__ctor_GrapeCity_Spreadsheet_CfRule_GrapeCity_CalcEngine_FormulaEngine_GrapeCity_CalcEngine_FormulaEngine_">CfRule(CfRule, FormulaEngine, FormulaEngine)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule__ctor_System_Boolean_" data-uid="GrapeCity.Spreadsheet.CfRule.#ctor(System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.-ctor.html#GrapeCity_Spreadsheet_CfRule__ctor_System_Boolean_">CfRule(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_MaxValuesCount" data-uid="GrapeCity.Spreadsheet.CfRule.MaxValuesCount">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.MaxValuesCount.html#GrapeCity_Spreadsheet_CfRule_MaxValuesCount">MaxValuesCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the maximum values this <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> can supports.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_StopIfTrue" data-uid="GrapeCity.Spreadsheet.CfRule.StopIfTrue">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.StopIfTrue.html#GrapeCity_Spreadsheet_CfRule_StopIfTrue">StopIfTrue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether all next rules will be suspended if this rule is applied.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_ValuesCount" data-uid="GrapeCity.Spreadsheet.CfRule.ValuesCount">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.ValuesCount.html#GrapeCity_Spreadsheet_CfRule_ValuesCount">ValuesCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total count of conditional formatting values(s).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td 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@)">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.Apply.html#GrapeCity_Spreadsheet_CfRule_Apply_GrapeCity_Spreadsheet_Conditional_MatchData__GrapeCity_Spreadsheet_CfExecutedResult__">Apply(ref MatchData, ref CfExecutedResult)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies the format of this conditional formatting rule to the format result.</p>
</td>
      </tr>
      <tr>
        <td 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@)">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.ApplyFormat.html#GrapeCity_Spreadsheet_CfRule_ApplyFormat_GrapeCity_Spreadsheet_Conditional_MatchData__GrapeCity_Spreadsheet_StyleFormat__">ApplyFormat(ref MatchData, ref StyleFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies the format of this conditional formatting rule to the format result.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_AutoGenerateValues" data-uid="GrapeCity.Spreadsheet.CfRule.AutoGenerateValues">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.AutoGenerateValues.html#GrapeCity_Spreadsheet_CfRule_AutoGenerateValues">AutoGenerateValues()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates conditional formatting value(s) of this <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> automatically.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_CanProcessEmptyValue" data-uid="GrapeCity.Spreadsheet.CfRule.CanProcessEmptyValue">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.CanProcessEmptyValue.html#GrapeCity_Spreadsheet_CfRule_CanProcessEmptyValue">CanProcessEmptyValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this rule is able to process empty value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_DecreasePriority" data-uid="GrapeCity.Spreadsheet.CfRule.DecreasePriority">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.DecreasePriority.html#GrapeCity_Spreadsheet_CfRule_DecreasePriority">DecreasePriority()</a>
        </td>
        <td class="markdown level1 summary"><p>Decreases the priority of <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> rule.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_Delete" data-uid="GrapeCity.Spreadsheet.CfRule.Delete">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.Delete.html#GrapeCity_Spreadsheet_CfRule_Delete">Delete()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes this <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> rule from worksheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_GetValue_System_Int32_" data-uid="GrapeCity.Spreadsheet.CfRule.GetValue(System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.GetValue.html#GrapeCity_Spreadsheet_CfRule_GetValue_System_Int32_">GetValue(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a conditional formatting value at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_IncreasePriority" data-uid="GrapeCity.Spreadsheet.CfRule.IncreasePriority">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.IncreasePriority.html#GrapeCity_Spreadsheet_CfRule_IncreasePriority">IncreasePriority()</a>
        </td>
        <td class="markdown level1 summary"><p>Increases the priority of <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> rule.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_IsMatched_GrapeCity_Spreadsheet_Conditional_MatchData_" data-uid="GrapeCity.Spreadsheet.CfRule.IsMatched(GrapeCity.Spreadsheet.Conditional.MatchData)">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.IsMatched.html#GrapeCity_Spreadsheet_CfRule_IsMatched_GrapeCity_Spreadsheet_Conditional_MatchData_">IsMatched(MatchData)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the cell value is matched conditions of this rule.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_ReplaceWith_GrapeCity_Spreadsheet_CfRule_" data-uid="GrapeCity.Spreadsheet.CfRule.ReplaceWith(GrapeCity.Spreadsheet.CfRule)">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.ReplaceWith.html#GrapeCity_Spreadsheet_CfRule_ReplaceWith_GrapeCity_Spreadsheet_CfRule_">ReplaceWith(CfRule)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces this <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> rule with the specified <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> rule.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_SetFirstPriority" data-uid="GrapeCity.Spreadsheet.CfRule.SetFirstPriority">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.SetFirstPriority.html#GrapeCity_Spreadsheet_CfRule_SetFirstPriority">SetFirstPriority()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the priority of <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> rule as highest.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_SetLastPriority" data-uid="GrapeCity.Spreadsheet.CfRule.SetLastPriority">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.SetLastPriority.html#GrapeCity_Spreadsheet_CfRule_SetLastPriority">SetLastPriority()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the priority of <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> rule as lowest.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CfRule_SetValue_System_Int32_GrapeCity_Spreadsheet_CfValue_" data-uid="GrapeCity.Spreadsheet.CfRule.SetValue(System.Int32,GrapeCity.Spreadsheet.CfValue)">
          <a class="xref" href="GrapeCity.Spreadsheet.CfRule.SetValue.html#GrapeCity_Spreadsheet_CfRule_SetValue_System_Int32_GrapeCity_Spreadsheet_CfValue_">SetValue(int, CfValue)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the conditional formatting value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
