# FarPoint.Web.Spread.SheetView.SetConditionalFormatting

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting*">SetConditionalFormatting Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_System_Int32_System_Int32_FarPoint_Web_Spread_IConditionalFormattingRule___" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting(System.Int32,System.Int32,FarPoint.Web.Spread.IConditionalFormattingRule[])">SetConditionalFormatting(int, int, params IConditionalFormattingRule[])</h4>
<div class="markdown level1 summary"><p>Sets conditional formatting for a specified cell on the sheet based on specified rules.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetConditionalFormatting(int row, int column, params IConditionalFormattingRule[] rules)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetConditionalFormatting(row As Integer, column As Integer, ParamArray rules As IConditionalFormattingRule())</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>Starting row index</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>Starting column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingRule.html">IConditionalFormattingRule</a>[]</td>
      <td><span class="parametername">rules</span></td>
      <td><p>The specified rules to apply for a specified cell</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_System_Int32_System_Int32_System_Boolean_FarPoint_Web_Spread_IConditionalFormattingRule___" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting(System.Int32,System.Int32,System.Boolean,FarPoint.Web.Spread.IConditionalFormattingRule[])">SetConditionalFormatting(int, int, bool, params IConditionalFormattingRule[])</h4>
<div class="markdown level1 summary"><p>Sets conditional formatting for a specified cell on the sheet based on specified rules.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetConditionalFormatting(int row, int column, bool combinable, params IConditionalFormattingRule[] rules)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetConditionalFormatting(row As Integer, column As Integer, combinable As Boolean, ParamArray rules As IConditionalFormattingRule())</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>Starting row index</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>Starting column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">combinable</span></td>
      <td><p>Rule(s) can be merged into an existing conditional format if they affect the same cell range(s).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingRule.html">IConditionalFormattingRule</a>[]</td>
      <td><span class="parametername">rules</span></td>
      <td><p>The specified rules to apply for a specified cell</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_System_Int32_System_Int32_System_Int32_System_Int32_FarPoint_Web_Spread_IConditionalFormattingRule___" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting(System.Int32,System.Int32,System.Int32,System.Int32,FarPoint.Web.Spread.IConditionalFormattingRule[])">SetConditionalFormatting(int, int, int, int, params IConditionalFormattingRule[])</h4>
<div class="markdown level1 summary"><p>Sets conditional formatting for a specified range of cells on the sheet based on specified rules.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetConditionalFormatting(int row, int column, int rowCount, int columnCount, params IConditionalFormattingRule[] rules)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetConditionalFormatting(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, ParamArray rules As IConditionalFormattingRule())</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>Starting row index</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>Starting column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingRule.html">IConditionalFormattingRule</a>[]</td>
      <td><span class="parametername">rules</span></td>
      <td><p>The specified rules to apply for a specified range of cells</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_FarPoint_Web_Spread_IConditionalFormattingRule___" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting(System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,FarPoint.Web.Spread.IConditionalFormattingRule[])">SetConditionalFormatting(int, int, int, int, bool, params IConditionalFormattingRule[])</h4>
<div class="markdown level1 summary"><p>Sets conditional formatting for a specified range of cells on the sheet based on specified rules.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetConditionalFormatting(int row, int column, int rowCount, int columnCount, bool combinable, params IConditionalFormattingRule[] rules)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetConditionalFormatting(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, combinable As Boolean, ParamArray rules As IConditionalFormattingRule())</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>Starting row index</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>Starting column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">combinable</span></td>
      <td><p>Rule(s) can be merged into an existing conditional format if they affect the same cell range(s).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingRule.html">IConditionalFormattingRule</a>[]</td>
      <td><span class="parametername">rules</span></td>
      <td><p>The specified rules to apply for a specified range of cells</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_FarPoint_Web_Spread_Model_CellRange___FarPoint_Web_Spread_IConditionalFormattingRule___" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting(FarPoint.Web.Spread.Model.CellRange[],FarPoint.Web.Spread.IConditionalFormattingRule[])">SetConditionalFormatting(CellRange[], params IConditionalFormattingRule[])</h4>
<div class="markdown level1 summary"><p>Sets conditional formatting for specified ranges of cells on the sheet based on specified rules.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetConditionalFormatting(CellRange[] cellRanges, params IConditionalFormattingRule[] rules)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetConditionalFormatting(cellRanges As CellRange(), ParamArray rules As IConditionalFormattingRule())</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.Model.CellRange.html">CellRange</a>[]</td>
      <td><span class="parametername">cellRanges</span></td>
      <td><p>The cell ranges</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingRule.html">IConditionalFormattingRule</a>[]</td>
      <td><span class="parametername">rules</span></td>
      <td><p>The specified rules to apply for a specified range of cells</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_FarPoint_Web_Spread_Model_CellRange___System_Boolean_FarPoint_Web_Spread_IConditionalFormattingRule___" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting(FarPoint.Web.Spread.Model.CellRange[],System.Boolean,FarPoint.Web.Spread.IConditionalFormattingRule[])">SetConditionalFormatting(CellRange[], bool, params IConditionalFormattingRule[])</h4>
<div class="markdown level1 summary"><p>Sets conditional formatting for specified ranges of cells on the sheet based on specified rules.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetConditionalFormatting(CellRange[] cellRanges, bool combinable, params IConditionalFormattingRule[] rules)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetConditionalFormatting(cellRanges As CellRange(), combinable As Boolean, ParamArray rules As IConditionalFormattingRule())</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.Model.CellRange.html">CellRange</a>[]</td>
      <td><span class="parametername">cellRanges</span></td>
      <td><p>The cell ranges</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">combinable</span></td>
      <td><p>Rule(s) can be merged into an existing conditional format if they affect the same cell range(s).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingRule.html">IConditionalFormattingRule</a>[]</td>
      <td><span class="parametername">rules</span></td>
      <td><p>The specified rules to apply for a specified range of cells</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SetConditionalFormatting_FarPoint_Web_Spread_ConditionalFormatting___" data-uid="FarPoint.Web.Spread.SheetView.SetConditionalFormatting(FarPoint.Web.Spread.ConditionalFormatting[])">SetConditionalFormatting(params ConditionalFormatting[])</h4>
<div class="markdown level1 summary"><p>Sets conditional formatting for the sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetConditionalFormatting(params ConditionalFormatting[] cfs)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetConditionalFormatting(ParamArray cfs As ConditionalFormatting())</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.ConditionalFormatting.html">ConditionalFormatting</a>[]</td>
      <td><span class="parametername">cfs</span></td>
      <td><p>The conditional formatting</p>
</td>
    </tr>
  </tbody>
</table>
</div>
