# FarPoint.Web.Spread.FpSpread.RenderCSSClass

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_FpSpread_RenderCSSClass_" data-uid="FarPoint.Web.Spread.FpSpread.RenderCSSClass*">RenderCSSClass Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_FpSpread_RenderCSSClass_" data-uid="FarPoint.Web.Spread.FpSpread.RenderCSSClass*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_RenderCSSClass" data-uid="FarPoint.Web.Spread.FpSpread.RenderCSSClass">RenderCSSClass</h4>
<div class="markdown level1 summary"><p>Gets or sets whether the Spread component should render the styles by using CSS styles or by using
in-line style attributes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public bool RenderCSSClass { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Property RenderCSSClass As Boolean</code></pre>
</div>
<h5 id="FarPoint_Web_Spread_FpSpread_RenderCSSClass_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Gets or sets whether the Spread component should render the styles, such as BackColor, ForeColor, Font, etc.,
by using cascading style sheet (CSS) styles or by using in-line style attributes.<br>
The default is to use the in-line style attributes.
If this property is true, the Spread component renders the styles as CSS styles. That reduces the page size and speeds up
loading the ASPX page.
When this property is true, the Spread component checks if a cell renderer supports the ICSSClassSupport interface.
If the cell renderer supports the ICSSClassSupport interface and the CssClass property of the cell renderer is null or empty string,
the Spread component renders the style for the cell as a CSS style; otherwise, the Spread component renders the style as in-line style attributes.</p>
</div>
</div>
