# GrapeCity.Spreadsheet.CfRule.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_CfRule__ctor_" data-uid="GrapeCity.Spreadsheet.CfRule.#ctor*">CfRule Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_CfRule__ctor_" data-uid="GrapeCity.Spreadsheet.CfRule.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_CfRule__ctor_System_Boolean_" data-uid="GrapeCity.Spreadsheet.CfRule.#ctor(System.Boolean)">CfRule(bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CfRule(bool stylish)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(stylish 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">stylish</span></td>
      <td><p><code>true</code> indicates the conditional formatting rule will affect to the cell's formatting;
otherwise, the conditional formatting rule will have independent behavior for the control.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_CfRule__ctor_" data-uid="GrapeCity.Spreadsheet.CfRule.#ctor*"></a>
<h4 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)">CfRule(CfRule, FormulaEngine, FormulaEngine)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected CfRule(CfRule originRule, FormulaEngine originEngine, FormulaEngine targetEngine)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(originRule As CfRule, originEngine As FormulaEngine, targetEngine As FormulaEngine)</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.CfRule.html">CfRule</a></td>
      <td><span class="parametername">originRule</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.CfRule.html">CfRule</a> rule indicates the rule will be cloned.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">FormulaEngine</span></td>
      <td><span class="parametername">originEngine</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">FormulaEngine</span></td>
      <td><span class="parametername">targetEngine</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
