# FarPoint.Web.Spread.IConditionalFormatSupport.SetConditionalFormat

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_IConditionalFormatSupport_SetConditionalFormat_" data-uid="FarPoint.Web.Spread.IConditionalFormatSupport.SetConditionalFormat*">SetConditionalFormat Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_IConditionalFormatSupport_SetConditionalFormat_" data-uid="FarPoint.Web.Spread.IConditionalFormatSupport.SetConditionalFormat*"></a>
<h4 id="FarPoint_Web_Spread_IConditionalFormatSupport_SetConditionalFormat_System_Int32_System_Int32_FarPoint_Web_Spread_NamedStyle_FarPoint_Web_Spread_ComparisonOperator_System_String_" data-uid="FarPoint.Web.Spread.IConditionalFormatSupport.SetConditionalFormat(System.Int32,System.Int32,FarPoint.Web.Spread.NamedStyle,FarPoint.Web.Spread.ComparisonOperator,System.String)">SetConditionalFormat(int, int, NamedStyle, ComparisonOperator, string)</h4>
<div class="markdown level1 summary"><p>Sets a parameterized conditional format for the cell at the specified row and column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool SetConditionalFormat(int row, int column, NamedStyle style, ComparisonOperator op, string value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function SetConditionalFormat(row As Integer, column As Integer, style As NamedStyle, op As ComparisonOperator, value As String) 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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.NamedStyle.html">NamedStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Style to be applied to the cell if the condition is satisfied</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.ComparisonOperator.html">ComparisonOperator</a></td>
      <td><span class="parametername">op</span></td>
      <td><p>Comparison operator to apply to the cell value and the parameter value</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Parameter value</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_IConditionalFormatSupport_SetConditionalFormat_" data-uid="FarPoint.Web.Spread.IConditionalFormatSupport.SetConditionalFormat*"></a>
<h4 id="FarPoint_Web_Spread_IConditionalFormatSupport_SetConditionalFormat_System_Int32_System_Int32_FarPoint_Web_Spread_NamedStyle_FarPoint_Web_Spread_ComparisonOperator_System_String_System_String_" data-uid="FarPoint.Web.Spread.IConditionalFormatSupport.SetConditionalFormat(System.Int32,System.Int32,FarPoint.Web.Spread.NamedStyle,FarPoint.Web.Spread.ComparisonOperator,System.String,System.String)">SetConditionalFormat(int, int, NamedStyle, ComparisonOperator, string, string)</h4>
<div class="markdown level1 summary"><p>Sets a parameterized conditional format for the cell at the specified row and column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool SetConditionalFormat(int row, int column, NamedStyle style, ComparisonOperator op, string firstCondition, string lastCondition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function SetConditionalFormat(row As Integer, column As Integer, style As NamedStyle, op As ComparisonOperator, firstCondition As String, lastCondition As String) 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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.NamedStyle.html">NamedStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Style to be applied to the cell if the condition is satisfied</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.ComparisonOperator.html">ComparisonOperator</a></td>
      <td><span class="parametername">op</span></td>
      <td><p>Comparison operator to apply to the cell value and the parameter values</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">firstCondition</span></td>
      <td><p>First parameter value</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">lastCondition</span></td>
      <td><p>Last parameter value</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_IConditionalFormatSupport_SetConditionalFormat_" data-uid="FarPoint.Web.Spread.IConditionalFormatSupport.SetConditionalFormat*"></a>
<h4 id="FarPoint_Web_Spread_IConditionalFormatSupport_SetConditionalFormat_System_Int32_System_Int32_FarPoint_Web_Spread_NamedStyle_FarPoint_Web_Spread_ComparisonOperator_FarPoint_CalcEngine_Expression_FarPoint_CalcEngine_Expression_" data-uid="FarPoint.Web.Spread.IConditionalFormatSupport.SetConditionalFormat(System.Int32,System.Int32,FarPoint.Web.Spread.NamedStyle,FarPoint.Web.Spread.ComparisonOperator,FarPoint.CalcEngine.Expression,FarPoint.CalcEngine.Expression)">SetConditionalFormat(int, int, NamedStyle, ComparisonOperator, Expression, Expression)</h4>
<div class="markdown level1 summary"><p>Sets a parameterized conditional format for the cell at the specified row and column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool SetConditionalFormat(int row, int column, NamedStyle style, ComparisonOperator op, Expression firstCondition, Expression lastCondition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function SetConditionalFormat(row As Integer, column As Integer, style As NamedStyle, op As ComparisonOperator, firstCondition As Expression, lastCondition As Expression) 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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.NamedStyle.html">NamedStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Style to be applied to the cell if the condition is satisfied</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.ComparisonOperator.html">ComparisonOperator</a></td>
      <td><span class="parametername">op</span></td>
      <td><p>Comparison operator to apply to the cell value and the parameter values</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.CalcEngine/FarPoint.CalcEngine.Expression.html">Expression</a></td>
      <td><span class="parametername">firstCondition</span></td>
      <td><p>First parameter value</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.CalcEngine/FarPoint.CalcEngine.Expression.html">Expression</a></td>
      <td><span class="parametername">lastCondition</span></td>
      <td><p>Last parameter value</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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></td>
    </tr>
  </tbody>
</table>
</div>
