Spread ASP.NET 6.0 Product Documentation
DefaultStyle Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > RowHeader Class : DefaultStyle Property


Glossary Item Box

Gets or sets the default style for the cells in the row header.

Syntax

Visual Basic (Declaration) 
Public Property DefaultStyle As StyleInfo
Visual Basic (Usage)Copy Code
Dim instance As RowHeader
Dim value As StyleInfo
 
instance.DefaultStyle = value
 
value = instance.DefaultStyle
C# 
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.
C#Copy Code
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; 
Visual BasicCopy Code
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 

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.