Spread for ASP.NET 7.0 Product Documentation
RenderCSSClass Property
See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : RenderCSSClass Property


Glossary Item Box

Gets or sets whether the Spread component should render the styles by using CSS styles or by using in-line style attributes.

Syntax

Visual Basic (Declaration) 
Public Property RenderCSSClass As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As Boolean
 
instance.RenderCSSClass = value
 
value = instance.RenderCSSClass
C# 
public bool RenderCSSClass {get; set;}

Property Value

true to render using the CSS; false to use in-line style attributes

Remarks

This property is available at run time only.

This property determines whether the 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.

If this property is true, the 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 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 component renders the style for the cell as a CSS style. Otherwise, the component renders the style as in-line style attributes.

Example

See the examples of CSSClass properties in the various cell types that allow CSS class.

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.