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


Glossary Item Box

Gets or sets the default style information for the cells in the column header.

Syntax

Visual Basic (Declaration) 
Public Property DefaultStyle As StyleInfo
Visual Basic (Usage)Copy Code
Dim instance As ColumnHeader
Dim value As StyleInfo
 
instance.DefaultStyle = value
 
value = instance.DefaultStyle
C# 
public StyleInfo DefaultStyle {get; set;}

Property Value

StyleInfo object containing the default style information for the header

Example

This example sets the background color of all the columns in the column header, based on the DefaultStyle.
C#Copy Code
FarPoint.Win.Spread.ColumnHeader ch;
FarPoint.Win.Spread.StyleInfo style = new FarPoint.Win.Spread.StyleInfo();
ch = fpSpread1.ActiveSheet.ColumnHeader;
ch.RowCount = 3;
style.BackColor = Color.Teal;
ch.DefaultStyle = style;
Visual BasicCopy Code
Dim ch As FarPoint.Win.Spread.ColumnHeader
Dim style As New FarPoint.Win.Spread.StyleInfo()
ch = FpSpread1.ActiveSheet.ColumnHeader
ch.RowCount = 3
style.BackColor = Color.Teal
ch.DefaultStyle = style

Requirements

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.