Spread Windows Forms 6.0 Product Documentation
DefaultStyle Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > RowHeader Class : DefaultStyle Property

Glossary Item Box

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


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
public StyleInfo DefaultStyle {get; set;}

Property Value

StyleInfo object containing the default style information for the header


This example changes the background color of the row header using its DefaultStyle.
Visual BasicCopy Code
Dim r As FarPoint.Win.Spread.RowHeader
r = FpSpread1.ActiveSheet.RowHeader
Dim mystyle As New FarPoint.Win.Spread.StyleInfo()
mystyle.BackColor = Color.Red
r.DefaultStyle = mystyle
C#Copy Code
FarPoint.Win.Spread.RowHeader r;
r = fpSpread1.ActiveSheet.RowHeader;
FarPoint.Win.Spread.StyleInfo mystyle = new FarPoint.Win.Spread.StyleInfo();
mystyle.BackColor = Color.Red;
r.DefaultStyle = mystyle;


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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