# GrapeCity.Spreadsheet.IFormatCondition

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_IFormatCondition" data-uid="GrapeCity.Spreadsheet.IFormatCondition" class="text-break">IFormatCondition Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a conditional format.</p>
</div>
  <div class="markdown level0 conceptual"></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_IFormatCondition_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IFormatCondition</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IFormatCondition</code></pre>
  </div>
  <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_IFormatCondition_AppliesTo" data-uid="GrapeCity.Spreadsheet.IFormatCondition.AppliesTo">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.AppliesTo.html#GrapeCity_Spreadsheet_IFormatCondition_AppliesTo">AppliesTo</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a> object specifying the cell range to which the formatting rule is applied.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Borders" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Borders">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Borders.html#GrapeCity_Spreadsheet_IFormatCondition_Borders">Borders</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Spreadsheet.IBorders.html">IBorders</a> collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_DateOperator" data-uid="GrapeCity.Spreadsheet.IFormatCondition.DateOperator">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.DateOperator.html#GrapeCity_Spreadsheet_IFormatCondition_DateOperator">DateOperator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the date operator used in the format condition.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Font" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Font">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Font.html#GrapeCity_Spreadsheet_IFormatCondition_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Spreadsheet.IFont.html">IFont</a> object that represents the font of the specified object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Formula1" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Formula1">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Formula1.html#GrapeCity_Spreadsheet_IFormatCondition_Formula1">Formula1</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the value or expression associated with the conditional format or data validation. Can be a constant value, a string value, a cell reference, or a formula.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Formula2" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Formula2">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Formula2.html#GrapeCity_Spreadsheet_IFormatCondition_Formula2">Formula2</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the value or expression associated with the second part of a conditional format or data validation.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Interior" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Interior">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Interior.html#GrapeCity_Spreadsheet_IFormatCondition_Interior">Interior</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an <a class="xref" href="GrapeCity.Spreadsheet.IInterior.html">IInterior</a> object that represents the interior of the specified object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_NumberFormat" data-uid="GrapeCity.Spreadsheet.IFormatCondition.NumberFormat">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.NumberFormat.html#GrapeCity_Spreadsheet_IFormatCondition_NumberFormat">NumberFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number format applied to a cell if the conditional formatting rule evaluates to <code>true</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Operator" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Operator">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Operator.html#GrapeCity_Spreadsheet_IFormatCondition_Operator">Operator</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Spreadsheet.FormatConditionOperator.html">FormatConditionOperator</a> value that represents the operator for the conditional format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Priority" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Priority">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Priority.html#GrapeCity_Spreadsheet_IFormatCondition_Priority">Priority</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the priority value of the conditional formatting rule. The priority determines the order of evaluation when multiple conditional formatting rules exist in a worksheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_StopIfTrue" data-uid="GrapeCity.Spreadsheet.IFormatCondition.StopIfTrue">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.StopIfTrue.html#GrapeCity_Spreadsheet_IFormatCondition_StopIfTrue">StopIfTrue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value that determines if additional formatting rules on the cell should be evaluated if the current rule evaluates to <code>true</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Text" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Text">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Text.html#GrapeCity_Spreadsheet_IFormatCondition_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value specifying the text string used by the conditional formatting rule.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_TextOperator" data-uid="GrapeCity.Spreadsheet.IFormatCondition.TextOperator">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.TextOperator.html#GrapeCity_Spreadsheet_IFormatCondition_TextOperator">TextOperator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets one of the constants of the <a class="xref" href="GrapeCity.Spreadsheet.ContainsOperator.html">ContainsOperator</a> enumeration, specifying the text search performed by the conditional formatting rule.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Type" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Type">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Type.html#GrapeCity_Spreadsheet_IFormatCondition_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.Spreadsheet.FormatConditionType.html">FormatConditionType</a> value that represents the format condition type.</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_IFormatCondition_Delete" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Delete">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Delete.html#GrapeCity_Spreadsheet_IFormatCondition_Delete">Delete()</a>
        </td>
        <td class="markdown level1 summary"><p>Deletes this conditional format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Modify_GrapeCity_Spreadsheet_ContainsOperator_System_String_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Modify(GrapeCity.Spreadsheet.ContainsOperator,System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Modify.html#GrapeCity_Spreadsheet_IFormatCondition_Modify_GrapeCity_Spreadsheet_ContainsOperator_System_String_">Modify(ContainsOperator, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies an existing conditional format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Modify_GrapeCity_Spreadsheet_FormatConditionType_GrapeCity_Spreadsheet_FormatConditionOperator_System_String_System_String_GrapeCity_Spreadsheet_ContainsOperator_GrapeCity_Spreadsheet_TimePeriods_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Modify(GrapeCity.Spreadsheet.FormatConditionType,GrapeCity.Spreadsheet.FormatConditionOperator,System.String,System.String,GrapeCity.Spreadsheet.ContainsOperator,GrapeCity.Spreadsheet.TimePeriods)">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Modify.html#GrapeCity_Spreadsheet_IFormatCondition_Modify_GrapeCity_Spreadsheet_FormatConditionType_GrapeCity_Spreadsheet_FormatConditionOperator_System_String_System_String_GrapeCity_Spreadsheet_ContainsOperator_GrapeCity_Spreadsheet_TimePeriods_">Modify(FormatConditionType, FormatConditionOperator, string, string, ContainsOperator, TimePeriods)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies an existing conditional format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_Modify_GrapeCity_Spreadsheet_TimePeriods_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.Modify(GrapeCity.Spreadsheet.TimePeriods)">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.Modify.html#GrapeCity_Spreadsheet_IFormatCondition_Modify_GrapeCity_Spreadsheet_TimePeriods_">Modify(TimePeriods)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies an existing conditional format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_GrapeCity_Spreadsheet_Reference_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange(GrapeCity.Spreadsheet.Reference)">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange.html#GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_GrapeCity_Spreadsheet_Reference_">ModifyAppliesToRange(Reference)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies an existing text conditional format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_System_String_" data-uid="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.ModifyAppliesToRange.html#GrapeCity_Spreadsheet_IFormatCondition_ModifyAppliesToRange_System_String_">ModifyAppliesToRange(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the cell range to which this formatting rule applies.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_SetFirstPriority" data-uid="GrapeCity.Spreadsheet.IFormatCondition.SetFirstPriority">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.SetFirstPriority.html#GrapeCity_Spreadsheet_IFormatCondition_SetFirstPriority">SetFirstPriority()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the priority value for this conditional formatting rule to &quot;1&quot; so that it will be evaluated before all other rules on the worksheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IFormatCondition_SetLastPriority" data-uid="GrapeCity.Spreadsheet.IFormatCondition.SetLastPriority">
          <a class="xref" href="GrapeCity.Spreadsheet.IFormatCondition.SetLastPriority.html#GrapeCity_Spreadsheet_IFormatCondition_SetLastPriority">SetLastPriority()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the evaluation order for this conditional formatting rule so it is evaluated after all other rules on the worksheet.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
