# FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor*">ThreeColorScaleConditionalFormattingRule Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor">ThreeColorScaleConditionalFormattingRule()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.html">ThreeColorScaleConditionalFormattingRule</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ThreeColorScaleConditionalFormattingRule()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color)">ThreeColorScaleConditionalFormattingRule(Color, Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.html">ThreeColorScaleConditionalFormattingRule</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ThreeColorScaleConditionalFormattingRule(Color minColor, Color midColor, Color maxColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(minColor As Color, midColor As Color, maxColor As Color)</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><span class="xref">Color</span></td>
      <td><span class="parametername">minColor</span></td>
      <td><p>Color of the minimum value.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Color</span></td>
      <td><span class="parametername">midColor</span></td>
      <td><p>Color of the middle value.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Color</span></td>
      <td><span class="parametername">maxColor</span></td>
      <td><p>Color of the maximum value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor_FarPoint_Web_Spread_ConditionalFormattingColorValue_FarPoint_Web_Spread_ConditionalFormattingColorValue_FarPoint_Web_Spread_ConditionalFormattingColorValue_" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor(FarPoint.Web.Spread.ConditionalFormattingColorValue,FarPoint.Web.Spread.ConditionalFormattingColorValue,FarPoint.Web.Spread.ConditionalFormattingColorValue)">ThreeColorScaleConditionalFormattingRule(ConditionalFormattingColorValue, ConditionalFormattingColorValue, ConditionalFormattingColorValue)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.html">ThreeColorScaleConditionalFormattingRule</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ThreeColorScaleConditionalFormattingRule(ConditionalFormattingColorValue minValue, ConditionalFormattingColorValue midValue, ConditionalFormattingColorValue maxValue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(minValue As ConditionalFormattingColorValue, midValue As ConditionalFormattingColorValue, maxValue As ConditionalFormattingColorValue)</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.ConditionalFormattingColorValue.html">ConditionalFormattingColorValue</a></td>
      <td><span class="parametername">minValue</span></td>
      <td><p>The minimum value. Note: The minimum value only accepts the ConditionalFormattingColorValue object which has a Type value of Min, Number, Percent, Formula, or Pecentile.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingColorValue.html">ConditionalFormattingColorValue</a></td>
      <td><span class="parametername">midValue</span></td>
      <td><p>The middle value. Note: The middle value only accepts the ConditionalFormattingColorValue object which has a Type value of Number, Percent, Formula, or Pecentile.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.ConditionalFormattingColorValue.html">ConditionalFormattingColorValue</a></td>
      <td><span class="parametername">maxValue</span></td>
      <td><p>The maximum value. Note: The maximum value only accepts the ConditionalFormattingColorValue object which has a Type value of  Max, Number, Percent, Formula, or Pecentile.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor_" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ThreeColorScaleConditionalFormattingRule__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">ThreeColorScaleConditionalFormattingRule(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule.html">ThreeColorScaleConditionalFormattingRule</a> class from serialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected ThreeColorScaleConditionalFormattingRule(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>The System.Runtime.Serialization.SerializationInfo to populate with data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
