# FarPoint.Web.Spread.ConditionalFormatting

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_ConditionalFormatting" data-uid="FarPoint.Web.Spread.ConditionalFormatting" class="text-break">ConditionalFormatting Class
</h1>
  <div class="markdown level0 summary"><p>Represents a conditional format.</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">ConditionalFormatting</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.IConditionalFormattingRule.html">IConditionalFormattingRule</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.IConditionalFormattingRule.html">IConditionalFormattingRule</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="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.ideserializationcallback">IDeserializationCallback</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.icloneable">ICloneable</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.INotifyItemChanged-1.html">INotifyItemChanged</a>&lt;<a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingRule.html">IConditionalFormattingRule</a>&gt;</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_ConditionalFormatting_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class ConditionalFormatting : ICollection&lt;IConditionalFormattingRule&gt;, IEnumerable&lt;IConditionalFormattingRule&gt;, IEnumerable, IDeserializationCallback, ISerializeSupport, ICloneable, ISerializable, INotifyItemChanged&lt;IConditionalFormattingRule&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class ConditionalFormatting
    Implements ICollection(Of IConditionalFormattingRule), IEnumerable(Of IConditionalFormattingRule), IEnumerable, IDeserializationCallback, ISerializeSupport, ICloneable, ISerializable, INotifyItemChanged(Of IConditionalFormattingRule)</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_ConditionalFormatting__ctor_FarPoint_Web_Spread_Model_CellRange_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.#ctor(FarPoint.Web.Spread.Model.CellRange)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.-ctor.html#FarPoint_Web_Spread_ConditionalFormatting__ctor_FarPoint_Web_Spread_Model_CellRange_">ConditionalFormatting(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.html">ConditionalFormatting</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting__ctor_FarPoint_Web_Spread_Model_CellRange_FarPoint_Web_Spread_IConditionalFormattingRule___" data-uid="FarPoint.Web.Spread.ConditionalFormatting.#ctor(FarPoint.Web.Spread.Model.CellRange,FarPoint.Web.Spread.IConditionalFormattingRule[])">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.-ctor.html#FarPoint_Web_Spread_ConditionalFormatting__ctor_FarPoint_Web_Spread_Model_CellRange_FarPoint_Web_Spread_IConditionalFormattingRule___">ConditionalFormatting(CellRange, params IConditionalFormattingRule[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.html">ConditionalFormatting</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting__ctor_System_Collections_Generic_IEnumerable_FarPoint_Web_Spread_Model_CellRange__" data-uid="FarPoint.Web.Spread.ConditionalFormatting.#ctor(System.Collections.Generic.IEnumerable{FarPoint.Web.Spread.Model.CellRange})">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.-ctor.html#FarPoint_Web_Spread_ConditionalFormatting__ctor_System_Collections_Generic_IEnumerable_FarPoint_Web_Spread_Model_CellRange__">ConditionalFormatting(IEnumerable&lt;CellRange&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.html">ConditionalFormatting</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting__ctor_System_Collections_Generic_IEnumerable_FarPoint_Web_Spread_Model_CellRange__FarPoint_Web_Spread_IConditionalFormattingRule___" data-uid="FarPoint.Web.Spread.ConditionalFormatting.#ctor(System.Collections.Generic.IEnumerable{FarPoint.Web.Spread.Model.CellRange},FarPoint.Web.Spread.IConditionalFormattingRule[])">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.-ctor.html#FarPoint_Web_Spread_ConditionalFormatting__ctor_System_Collections_Generic_IEnumerable_FarPoint_Web_Spread_Model_CellRange__FarPoint_Web_Spread_IConditionalFormattingRule___">ConditionalFormatting(IEnumerable&lt;CellRange&gt;, params IConditionalFormattingRule[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.html">ConditionalFormatting</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_ConditionalFormatting_AverageValue" data-uid="FarPoint.Web.Spread.ConditionalFormatting.AverageValue">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.AverageValue.html#FarPoint_Web_Spread_ConditionalFormatting_AverageValue">AverageValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the average value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_ContainsCalcError" data-uid="FarPoint.Web.Spread.ConditionalFormatting.ContainsCalcError">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.ContainsCalcError.html#FarPoint_Web_Spread_ConditionalFormatting_ContainsCalcError">ContainsCalcError</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the conditional formatting range(s) contains a CalcError value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_Count" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Count">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Count.html#FarPoint_Web_Spread_ConditionalFormatting_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_ConditionalFormatting_DoubleValues" data-uid="FarPoint.Web.Spread.ConditionalFormatting.DoubleValues">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.DoubleValues.html#FarPoint_Web_Spread_ConditionalFormatting_DoubleValues">DoubleValues</a>
        </td>
        <td class="markdown level1 summary"><p>Gets all values.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_IsReadOnly" data-uid="FarPoint.Web.Spread.ConditionalFormatting.IsReadOnly">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.IsReadOnly.html#FarPoint_Web_Spread_ConditionalFormatting_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_ConditionalFormatting_Ranges" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Ranges">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Ranges.html#FarPoint_Web_Spread_ConditionalFormatting_Ranges">Ranges</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ranges that the conditional formatting applied.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_Rules" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Rules">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Rules.html#FarPoint_Web_Spread_ConditionalFormatting_Rules">Rules</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the rules.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_StandardDeviation" data-uid="FarPoint.Web.Spread.ConditionalFormatting.StandardDeviation">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.StandardDeviation.html#FarPoint_Web_Spread_ConditionalFormatting_StandardDeviation">StandardDeviation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the standard deviation.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_ValuesCount" data-uid="FarPoint.Web.Spread.ConditionalFormatting.ValuesCount">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.ValuesCount.html#FarPoint_Web_Spread_ConditionalFormatting_ValuesCount">ValuesCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ranges value count.</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_ConditionalFormatting_Add_FarPoint_Web_Spread_IConditionalFormattingRule_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Add(FarPoint.Web.Spread.IConditionalFormattingRule)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Add.html#FarPoint_Web_Spread_ConditionalFormatting_Add_FarPoint_Web_Spread_IConditionalFormattingRule_">Add(IConditionalFormattingRule)</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_ConditionalFormatting_AddRange_System_Collections_Generic_IEnumerable_FarPoint_Web_Spread_IConditionalFormattingRule__" data-uid="FarPoint.Web.Spread.ConditionalFormatting.AddRange(System.Collections.Generic.IEnumerable{FarPoint.Web.Spread.IConditionalFormattingRule})">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.AddRange.html#FarPoint_Web_Spread_ConditionalFormatting_AddRange_System_Collections_Generic_IEnumerable_FarPoint_Web_Spread_IConditionalFormattingRule__">AddRange(IEnumerable&lt;IConditionalFormattingRule&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the elements of the specified IConditionalFormattingRule collection to the ConditionalFormatting object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_Clear" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Clear">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Clear.html#FarPoint_Web_Spread_ConditionalFormatting_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_ConditionalFormatting_Contains_FarPoint_Web_Spread_IConditionalFormattingRule_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Contains(FarPoint.Web.Spread.IConditionalFormattingRule)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Contains.html#FarPoint_Web_Spread_ConditionalFormatting_Contains_FarPoint_Web_Spread_IConditionalFormattingRule_">Contains(IConditionalFormattingRule)</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_ConditionalFormatting_CopyTo_FarPoint_Web_Spread_IConditionalFormattingRule___System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.CopyTo(FarPoint.Web.Spread.IConditionalFormattingRule[],System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.CopyTo.html#FarPoint_Web_Spread_ConditionalFormatting_CopyTo_FarPoint_Web_Spread_IConditionalFormattingRule___System_Int32_">CopyTo(IConditionalFormattingRule[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the items to a compatible one-dimensional array, starting at the specified index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_Evaluate_System_Int32_System_Int32_FarPoint_CalcEngine_Expression_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Evaluate(System.Int32,System.Int32,FarPoint.CalcEngine.Expression)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Evaluate.html#FarPoint_Web_Spread_ConditionalFormatting_Evaluate_System_Int32_System_Int32_FarPoint_CalcEngine_Expression_">Evaluate(int, int, Expression)</a>
        </td>
        <td class="markdown level1 summary"><p>Evaluates the specified expression.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_Evaluate_System_Int32_System_Int32_System_String_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Evaluate(System.Int32,System.Int32,System.String)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Evaluate.html#FarPoint_Web_Spread_ConditionalFormatting_Evaluate_System_Int32_System_Int32_System_String_">Evaluate(int, int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Evaluates the specified formula.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_GetComparedValue_FarPoint_Web_Spread_ConditionalFormattingValueType_System_Object_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.GetComparedValue(FarPoint.Web.Spread.ConditionalFormattingValueType,System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.GetComparedValue.html#FarPoint_Web_Spread_ConditionalFormatting_GetComparedValue_FarPoint_Web_Spread_ConditionalFormattingValueType_System_Object_">GetComparedValue(ConditionalFormattingValueType, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the compare value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_GetEnumerator" data-uid="FarPoint.Web.Spread.ConditionalFormatting.GetEnumerator">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.GetEnumerator.html#FarPoint_Web_Spread_ConditionalFormatting_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_ConditionalFormatting_GetValue_System_Int32_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.GetValue(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.GetValue.html#FarPoint_Web_Spread_ConditionalFormatting_GetValue_System_Int32_">GetValue(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_IndexOf_FarPoint_Web_Spread_IConditionalFormattingRule_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.IndexOf(FarPoint.Web.Spread.IConditionalFormattingRule)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.IndexOf.html#FarPoint_Web_Spread_ConditionalFormatting_IndexOf_FarPoint_Web_Spread_IConditionalFormattingRule_">IndexOf(IConditionalFormattingRule)</a>
        </td>
        <td class="markdown level1 summary"><p>The index of the item.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_NotifyFormulaChanged_System_Object_FarPoint_Web_Spread_Model_FormulaChangedType_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.NotifyFormulaChanged(System.Object,FarPoint.Web.Spread.Model.FormulaChangedType)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.NotifyFormulaChanged.html#FarPoint_Web_Spread_ConditionalFormatting_NotifyFormulaChanged_System_Object_FarPoint_Web_Spread_Model_FormulaChangedType_">NotifyFormulaChanged(object, FormulaChangedType)</a>
        </td>
        <td class="markdown level1 summary"><p>Notifies the ConditionalFormatting object that the formula in the conditional formatting rule has changed.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_NotifyRequiresChanged" data-uid="FarPoint.Web.Spread.ConditionalFormatting.NotifyRequiresChanged">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.NotifyRequiresChanged.html#FarPoint_Web_Spread_ConditionalFormatting_NotifyRequiresChanged">NotifyRequiresChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Notifies when the requirements have changed.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_Remove_FarPoint_Web_Spread_IConditionalFormattingRule_" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Remove(FarPoint.Web.Spread.IConditionalFormattingRule)">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Remove.html#FarPoint_Web_Spread_ConditionalFormatting_Remove_FarPoint_Web_Spread_IConditionalFormattingRule_">Remove(IConditionalFormattingRule)</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>
    </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_ConditionalFormatting_Changed" data-uid="FarPoint.Web.Spread.ConditionalFormatting.Changed">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after a conditional formatting rule has been changed.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ConditionalFormatting_ConditionalFormattingSplit" data-uid="FarPoint.Web.Spread.ConditionalFormatting.ConditionalFormattingSplit">
          <a class="xref" href="FarPoint.Web.Spread.ConditionalFormatting.ConditionalFormattingSplit.html">ConditionalFormattingSplit</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the conditional formatting needs to be split due to an internal change.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
