# FarPoint.Web.Spread.PrePaintConditionalFormattingRule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_PrePaintConditionalFormattingRule" data-uid="FarPoint.Web.Spread.PrePaintConditionalFormattingRule" class="text-break">PrePaintConditionalFormattingRule Class
</h1>
  <div class="markdown level0 summary"><p>Represents a conditional format rule that is executed before painting the cell.</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"><span class="xref">PrePaintConditionalFormattingRule</span></div>
      <div class="level3"><a class="xref" href="FarPoint.Web.Spread.HighlightConditionalFormattingRule.html">HighlightConditionalFormattingRule</a></div>
      <div class="level3"><a class="xref" href="FarPoint.Web.Spread.TwoColorScaleConditionalFormattingRule.html">TwoColorScaleConditionalFormattingRule</a></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.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_PrePaintConditionalFormattingRule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PrePaintConditionalFormattingRule : ConditionalFormattingRule, ICanSerializeXml, ISerializeSupport, ISerializable, IPrePaintConditionalFormattingRule, IConditionalFormattingRule, INotifyPropertyChanged, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PrePaintConditionalFormattingRule
    Inherits ConditionalFormattingRule
    Implements ICanSerializeXml, ISerializeSupport, ISerializable, IPrePaintConditionalFormattingRule, 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_PrePaintConditionalFormattingRule__ctor" data-uid="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.-ctor.html#FarPoint_Web_Spread_PrePaintConditionalFormattingRule__ctor">PrePaintConditionalFormattingRule()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.html">PrePaintConditionalFormattingRule</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_PrePaintConditionalFormattingRule__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.-ctor.html#FarPoint_Web_Spread_PrePaintConditionalFormattingRule__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">PrePaintConditionalFormattingRule(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.html">PrePaintConditionalFormattingRule</a> class from serialization.</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_PrePaintConditionalFormattingRule_Execute_System_Int32_System_Int32_System_Object_" data-uid="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.Execute(System.Int32,System.Int32,System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.Execute.html#FarPoint_Web_Spread_PrePaintConditionalFormattingRule_Execute_System_Int32_System_Int32_System_Object_">Execute(int, int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the conditional format rule for changing the cell's style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_PrePaintConditionalFormattingRule_GetAllRules" data-uid="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.GetAllRules">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintConditionalFormattingRule.GetAllRules.html#FarPoint_Web_Spread_PrePaintConditionalFormattingRule_GetAllRules">GetAllRules()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets all rules.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
