# FarPoint.Web.Spread.ConditionalFormattingModel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_ConditionalFormattingModel" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel" class="text-break">ConditionalFormattingModel Class
</h1>
  <div class="markdown level0 summary"><p>Represents the conditional formatting model for a sheet.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ConditionalFormattingModel</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingModel.html">IConditionalFormattingModel</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.html">ConditionalFormatting</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.html">ConditionalFormatting</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.IRangeSupport.html">IRangeSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IOptimizedFilterConditionalFormattingModel.html">IOptimizedFilterConditionalFormattingModel</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Web.Spread.html">FarPoint.Web.Spread</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Web.Spread.dll</h6>
  <h5 id="FarPoint_Web_Spread_ConditionalFormattingModel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ConditionalFormattingModel : IConditionalFormattingModel, ICollection&lt;ConditionalFormatting&gt;, IEnumerable&lt;ConditionalFormatting&gt;, IEnumerable, IRangeSupport, ISerializeSupport, ISerializable, IOptimizedFilterConditionalFormattingModel</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ConditionalFormattingModel
    Implements IConditionalFormattingModel, ICollection(Of ConditionalFormatting), IEnumerable(Of ConditionalFormatting), IEnumerable, IRangeSupport, ISerializeSupport, ISerializable, IOptimizedFilterConditionalFormattingModel</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel__ctor" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.-ctor.html#FarPoint_Web_Spread_ConditionalFormattingModel__ctor">ConditionalFormattingModel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.html">ConditionalFormattingModel</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel__ctor_FarPoint_Web_Spread_SheetView_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.#ctor(FarPoint.Web.Spread.SheetView)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.-ctor.html#FarPoint_Web_Spread_ConditionalFormattingModel__ctor_FarPoint_Web_Spread_SheetView_">ConditionalFormattingModel(SheetView)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.html">ConditionalFormattingModel</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.-ctor.html#FarPoint_Web_Spread_ConditionalFormattingModel__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">ConditionalFormattingModel(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.html">ConditionalFormattingModel</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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="FarPoint_Web_Spread_ConditionalFormattingModel_Count" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Count">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Count.html#FarPoint_Web_Spread_ConditionalFormattingModel_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements contained in the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_IsReadOnly" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.IsReadOnly">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.IsReadOnly.html#FarPoint_Web_Spread_ConditionalFormattingModel_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a> is read-only.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Item_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Item(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Item.html#FarPoint_Web_Spread_ConditionalFormattingModel_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.html">ConditionalFormatting</a> at the specified index.</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="FarPoint_Web_Spread_ConditionalFormattingModel_Add_FarPoint_Web_Spread_ConditionalFormatting_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Add(FarPoint.Web.Spread.ConditionalFormatting)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Add.html#FarPoint_Web_Spread_ConditionalFormattingModel_Add_FarPoint_Web_Spread_ConditionalFormatting_">Add(ConditionalFormatting)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an item to the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_AddColumns_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.AddColumns(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.AddColumns.html#FarPoint_Web_Spread_ConditionalFormattingModel_AddColumns_System_Int32_System_Int32_">AddColumns(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds columns of cells after the specified column.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_AddRows_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.AddRows(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.AddRows.html#FarPoint_Web_Spread_ConditionalFormattingModel_AddRows_System_Int32_System_Int32_">AddRows(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds rows of cells after the specified row.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_AdjustSplittingConditionalFormattings" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.AdjustSplittingConditionalFormattings">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.AdjustSplittingConditionalFormattings.html#FarPoint_Web_Spread_ConditionalFormattingModel_AdjustSplittingConditionalFormattings">AdjustSplittingConditionalFormattings()</a>
        </td>
        <td class="markdown level1 summary"><p>Adjusts the ConditionalFormatting model when there are some ConditionalFormattings objects that need to be split.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Clear" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Clear">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Clear.html#FarPoint_Web_Spread_ConditionalFormattingModel_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all items from the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Clear_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Clear(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Clear.html#FarPoint_Web_Spread_ConditionalFormattingModel_Clear_System_Int32_System_Int32_System_Int32_System_Int32_">Clear(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all of the contents from the cells in the specified range of cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Contains_FarPoint_Web_Spread_ConditionalFormatting_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Contains(FarPoint.Web.Spread.ConditionalFormatting)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Contains.html#FarPoint_Web_Spread_ConditionalFormattingModel_Contains_FarPoint_Web_Spread_ConditionalFormatting_">Contains(ConditionalFormatting)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a> contains a specific value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Copy_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Copy(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Copy.html#FarPoint_Web_Spread_ConditionalFormattingModel_Copy_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_">Copy(int, int, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies a range of cells and pastes it into a range of cells at the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_CopyTo_FarPoint_Web_Spread_ConditionalFormatting___System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.CopyTo(FarPoint.Web.Spread.ConditionalFormatting[],System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.CopyTo.html#FarPoint_Web_Spread_ConditionalFormattingModel_CopyTo_FarPoint_Web_Spread_ConditionalFormatting___System_Int32_">CopyTo(ConditionalFormatting[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies to an array.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Find_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Find(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Find.html#FarPoint_Web_Spread_ConditionalFormattingModel_Find_System_Int32_System_Int32_System_Int32_System_Int32_">Find(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds all conditional formatting that takes effect in the specified cell range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_FindRules_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.FindRules(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.FindRules.html#FarPoint_Web_Spread_ConditionalFormattingModel_FindRules_System_Int32_System_Int32_">FindRules(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds all rules which take effect in the specified cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_GetEnumerator" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.GetEnumerator">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.GetEnumerator.html#FarPoint_Web_Spread_ConditionalFormattingModel_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Move_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Move(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Move.html#FarPoint_Web_Spread_ConditionalFormattingModel_Move_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_">Move(int, int, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves a range of cells and pastes it into a range of cells at the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_OnChanged_FarPoint_Web_Spread_ConditionalFormattingModelEventArgs_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.OnChanged(FarPoint.Web.Spread.ConditionalFormattingModelEventArgs)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.OnChanged.html#FarPoint_Web_Spread_ConditionalFormattingModel_OnChanged_FarPoint_Web_Spread_ConditionalFormattingModelEventArgs_">OnChanged(ConditionalFormattingModelEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns information about the event that was raised.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Remove_FarPoint_Web_Spread_ConditionalFormatting_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Remove(FarPoint.Web.Spread.ConditionalFormatting)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Remove.html#FarPoint_Web_Spread_ConditionalFormattingModel_Remove_FarPoint_Web_Spread_ConditionalFormatting_">Remove(ConditionalFormatting)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specific object from the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_RemoveColumns_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.RemoveColumns(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.RemoveColumns.html#FarPoint_Web_Spread_ConditionalFormattingModel_RemoveColumns_System_Int32_System_Int32_">RemoveColumns(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes columns from the specified starting position.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_RemoveRows_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.RemoveRows(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.RemoveRows.html#FarPoint_Web_Spread_ConditionalFormattingModel_RemoveRows_System_Int32_System_Int32_">RemoveRows(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes rows from the specified starting position.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Swap_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Swap(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Swap.html#FarPoint_Web_Spread_ConditionalFormattingModel_Swap_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_">Swap(int, int, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Swaps a range of cells from one specified location to another.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormattingModel_Changed" data-uid="FarPoint.Web.Spread.ConditionalFormattingModel.Changed">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingModel.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the user makes a change to the model that affects the conditional formatting of cells of the sheet.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
