# FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule" class="text-break">PrePaintTextConditionalFormattingRule Class
</h1>
  <div class="markdown level0 summary"><p>Represents the conditional formatting rule that is used for painting before the text is painted.</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">PrePaintTextConditionalFormattingRule</span></div>
      <div class="level3"><a class="xref" href="FarPoint.Web.Spread.DatabarConditionalFormattingRule.html">DatabarConditionalFormattingRule</a></div>
      <div class="level3"><a class="xref" href="FarPoint.Web.Spread.IconSetConditionalFormattingRule.html">IconSetConditionalFormattingRule</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.IPrePaintTextConditionalFormattingRule.html">IPrePaintTextConditionalFormattingRule</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IPdfPrintableRule.html">IPdfPrintableRule</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_PrePaintTextConditionalFormattingRule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PrePaintTextConditionalFormattingRule : ConditionalFormattingRule, ICanSerializeXml, ISerializeSupport, ISerializable, IPrePaintTextConditionalFormattingRule, IPdfPrintableRule, IConditionalFormattingRule, INotifyPropertyChanged, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PrePaintTextConditionalFormattingRule
    Inherits ConditionalFormattingRule
    Implements ICanSerializeXml, ISerializeSupport, ISerializable, IPrePaintTextConditionalFormattingRule, IPdfPrintableRule, 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_PrePaintTextConditionalFormattingRule__ctor" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.-ctor.html#FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule__ctor">PrePaintTextConditionalFormattingRule()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.html">PrePaintTextConditionalFormattingRule</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.-ctor.html#FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">PrePaintTextConditionalFormattingRule(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.html">PrePaintTextConditionalFormattingRule</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_PrePaintTextConditionalFormattingRule_ShowConditionalFormatOnly" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.ShowConditionalFormatOnly">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.ShowConditionalFormatOnly.html#FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_ShowConditionalFormatOnly">ShowConditionalFormatOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the cell text should not be painted.</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_PrePaintTextConditionalFormattingRule_DeserializeEntry_System_Runtime_Serialization_SerializationEntry_" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.DeserializeEntry(System.Runtime.Serialization.SerializationEntry)">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.DeserializeEntry.html#FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_DeserializeEntry_System_Runtime_Serialization_SerializationEntry_">DeserializeEntry(SerializationEntry)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_GetAllRules" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.GetAllRules">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.GetAllRules.html#FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_GetAllRules">GetAllRules()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets all rules.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.GetObjectData.html#FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_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>
      <tr>
        <td id="FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_GetPreferredSize_System_Drawing_Graphics_System_Drawing_Size_FarPoint_Web_Spread_Appearance_System_Object_System_Single_System_Boolean_" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.GetPreferredSize(System.Drawing.Graphics,System.Drawing.Size,FarPoint.Web.Spread.Appearance,System.Object,System.Single,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.GetPreferredSize.html#FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_GetPreferredSize_System_Drawing_Graphics_System_Drawing_Size_FarPoint_Web_Spread_Appearance_System_Object_System_Single_System_Boolean_">GetPreferredSize(Graphics, Size, Appearance, object, float, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the preferred (maximum required) size of the cell for the renderer control.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_PaintCell_System_String_System_Web_UI_Control_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_System_Boolean_" data-uid="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.PaintCell(System.String,System.Web.UI.Control,FarPoint.Web.Spread.Appearance,FarPoint.Web.Spread.Inset,System.Object,System.Boolean,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.PrePaintTextConditionalFormattingRule.PaintCell.html#FarPoint_Web_Spread_PrePaintTextConditionalFormattingRule_PaintCell_System_String_System_Web_UI_Control_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_System_Boolean_">PaintCell(string, Control, Appearance, Inset, object, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the cell.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
