# FarPoint.Web.Spread.TextConditionalFormattingRule.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_TextConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.TextConditionalFormattingRule.#ctor*">TextConditionalFormattingRule Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_TextConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.TextConditionalFormattingRule.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_TextConditionalFormattingRule__ctor_FarPoint_Web_Spread_TextConditionOperator_System_String_" data-uid="FarPoint.Web.Spread.TextConditionalFormattingRule.#ctor(FarPoint.Web.Spread.TextConditionOperator,System.String)">TextConditionalFormattingRule(TextConditionOperator, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.TextConditionalFormattingRule.html">TextConditionalFormattingRule</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 TextConditionalFormattingRule(TextConditionOperator op, string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(op As TextConditionOperator, text 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="FarPoint.Web.Spread.TextConditionOperator.html">TextConditionOperator</a></td>
      <td><span class="parametername">op</span></td>
      <td><p>The operator.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The text.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_TextConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.TextConditionalFormattingRule.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_TextConditionalFormattingRule__ctor_FarPoint_Web_Spread_TextConditionOperator_System_String_System_Boolean_" data-uid="FarPoint.Web.Spread.TextConditionalFormattingRule.#ctor(FarPoint.Web.Spread.TextConditionOperator,System.String,System.Boolean)">TextConditionalFormattingRule(TextConditionOperator, string, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.TextConditionalFormattingRule.html">TextConditionalFormattingRule</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 TextConditionalFormattingRule(TextConditionOperator op, string text, bool isFormula)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(op As TextConditionOperator, text As String, isFormula 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="FarPoint.Web.Spread.TextConditionOperator.html">TextConditionOperator</a></td>
      <td><span class="parametername">op</span></td>
      <td><p>The operator.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isFormula</span></td>
      <td><p>if set to <code>true</code>, the text parameter represents a formula; otherwise, it represents a normal text value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_TextConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.TextConditionalFormattingRule.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_TextConditionalFormattingRule__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.TextConditionalFormattingRule.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">TextConditionalFormattingRule(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.TextConditionalFormattingRule.html">TextConditionalFormattingRule</a> class from serialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected TextConditionalFormattingRule(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>The System.Runtime.Serialization.SerializationInfo to populate with data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
