# FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule" class="text-break">TwoColorScaleConditionalFormattingRule Class
</h1>
  <div class="markdown level0 summary"><p>Represents the two color scale conditional formatting rule.</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"><a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingRule.html">ConditionalFormattingRule</a></div>
    <div class="level2"><a class="xref" href="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.html">PrePaintConditionalFormattingRule</a></div>
    <div class="level3"><span class="xref">TwoColorScaleConditionalFormattingRule</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ICanSerializeXml.html">ICanSerializeXml</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.IPrePaintConditionalFormattingRule.html">IPrePaintConditionalFormattingRule</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IExcelExporter.html">IExcelExporter</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingDataRule.html">IConditionalFormattingDataRule</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.IExpressionConsumer.html">IExpressionConsumer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IFilterSupportConditionalFormattingRule.html">IFilterSupportConditionalFormattingRule</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IConditionalFormattingRule.html">IConditionalFormattingRule</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</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_TwoColorScaleConditionalFormattingRule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TwoColorScaleConditionalFormattingRule : PrePaintConditionalFormattingRule, ICanSerializeXml, ISerializeSupport, ISerializable, IPrePaintConditionalFormattingRule, IExcelExporter, IConditionalFormattingDataRule, IExpressionConsumer, IFilterSupportConditionalFormattingRule, IConditionalFormattingRule, INotifyPropertyChanged, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TwoColorScaleConditionalFormattingRule
    Inherits PrePaintConditionalFormattingRule
    Implements ICanSerializeXml, ISerializeSupport, ISerializable, IPrePaintConditionalFormattingRule, IExcelExporter, IConditionalFormattingDataRule, IExpressionConsumer, IFilterSupportConditionalFormattingRule, IConditionalFormattingRule, INotifyPropertyChanged, ICloneable</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_TwoColorScaleConditionalFormattingRule__ctor" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.-ctor.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule__ctor">TwoColorScaleConditionalFormattingRule()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.html">TwoColorScaleConditionalFormattingRule</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule__ctor_FarPoint_Web_Spread_ConditionalFormattingColorValue_FarPoint_Web_Spread_ConditionalFormattingColorValue_" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.#ctor(FarPoint.Web.Spread.ConditionalFormattingColorValue,FarPoint.Web.Spread.ConditionalFormattingColorValue)">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.-ctor.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule__ctor_FarPoint_Web_Spread_ConditionalFormattingColorValue_FarPoint_Web_Spread_ConditionalFormattingColorValue_">TwoColorScaleConditionalFormattingRule(ConditionalFormattingColorValue, ConditionalFormattingColorValue)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.html">TwoColorScaleConditionalFormattingRule</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule__ctor_System_Drawing_Color_System_Drawing_Color_" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.#ctor(System.Drawing.Color,System.Drawing.Color)">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.-ctor.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule__ctor_System_Drawing_Color_System_Drawing_Color_">TwoColorScaleConditionalFormattingRule(Color, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.html">TwoColorScaleConditionalFormattingRule</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.-ctor.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">TwoColorScaleConditionalFormattingRule(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.html">TwoColorScaleConditionalFormattingRule</a> class from serialization.</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_TwoColorScaleConditionalFormattingRule_MaxValue" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.MaxValue">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.MaxValue.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_MaxValue">MaxValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the maximum value. Note: The maximum value only accepts the ConditionalFormattingColorValue object which has a Type property value of Max, Number, Percent, Formula, or Pecentile.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_MinValue" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.MinValue">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.MinValue.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_MinValue">MinValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum value. Note: The minimum value only accepts the ConditionalFormattingColorValue object which has a Type property value of Min, Number, Percent, Formula, or Pecentile.</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_TwoColorScaleConditionalFormattingRule_DeserializeEntry_System_Runtime_Serialization_SerializationEntry_" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.DeserializeEntry(System.Runtime.Serialization.SerializationEntry)">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.DeserializeEntry.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_DeserializeEntry_System_Runtime_Serialization_SerializationEntry_">DeserializeEntry(SerializationEntry)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_Execute_System_Int32_System_Int32_System_Object_" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.Execute(System.Int32,System.Int32,System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.Execute.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_Execute_System_Int32_System_Int32_System_Object_">Execute(int, int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the conditional format rule to change the cell's style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_GetColor_System_Object_" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.GetColor(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.GetColor.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_GetColor_System_Object_">GetColor(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the color to use for the specified value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.GetObjectData.html#FarPoint_Web_Spread_TwoColorScaleConditionalFormattingRule_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
