Spread for ASP.NET 11 Product Documentation
DefaultStyle Property (RowHeader)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > RowHeader Class : DefaultStyle Property
Gets or sets the default style for the cells in the row header.
Syntax
'Declaration
 
Public Property DefaultStyle As StyleInfo
'Usage
 
Dim instance As RowHeader
Dim value As StyleInfo
 
instance.DefaultStyle = value
 
value = instance.DefaultStyle
public StyleInfo DefaultStyle {get; set;}

Property Value

StyleInfo object containing style information for cells in this row header
Example
This example sets the background to red, and then applies that style to the row header, which sets all the row headers to a red background.
FarPoint.Web.Spread.RowHeader rhdr;
FarPoint.Web.Spread.StyleInfo mystyle = New FarPoint.Web.Spread.StyleInfo();
mystyle.BackColor = Color.Red;
rhdr = FpSpread1.ActiveSheetView.RowHeader;
rhdr.DefaultStyle = mystyle; 
Dim rhdr As FarPoint.Web.Spread.RowHeader
Dim mystyle As New FarPoint.Web.Spread.StyleInfo()
mystyle.BackColor = Color.Red
rhdr = FpSpread1.ActiveSheetView.RowHeader
rhdr.DefaultStyle = mystyle 
See Also

Reference

RowHeader Class
RowHeader Members
StyleInfo Class
DefaultStyleName Property

User-Task Documentation

Customizing the Appearance of Headers