FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ColumnHeader Class : DefaultStyle Property |
'Declaration Public Property DefaultStyle As StyleInfo
'Usage Dim instance As ColumnHeader Dim value As StyleInfo instance.DefaultStyle = value value = instance.DefaultStyle
public StyleInfo DefaultStyle {get; set;}
This example sets the background color to red, and then applies that style to the column header, which sets all the column headers to a red background.
FarPoint.Web.Spread.ColumnHeader colhdr;
FarPoint.Web.Spread.StyleInfo mystyle = new FarPoint.Web.Spread.StyleInfo();
mystyle.BackColor = Color.Red;
colhdr = FpSpread1.ActiveSheetView.ColumnHeader;
colhdr.DefaultStyle = mystyle;
Dim colhdr As FarPoint.Web.Spread.ColumnHeader Dim mystyle As New FarPoint.Web.Spread.StyleInfo() mystyle.BackColor = Color.Red colhdr = FpSpread1.ActiveSheetView.ColumnHeader colhdr.DefaultStyle = mystyle
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional
ColumnHeader Class
ColumnHeader Members
StyleInfo Class
DefaultStyleName Property