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


Glossary Item Box

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

Syntax

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

Example

This example creates a column footer.
C#Copy Code
fpSpread1.Sheets[0].RowCount = 10;
fpSpread1.Sheets[0].ColumnCount = 15;
// Show the footer.
fpSpread1.Sheets[0].ColumnFooter.Visible = true;
fpSpread1.Sheets[0].ColumnFooter.RowCount = 2;

FarPoint.Win.Spread.NamedStyle nstyleheaders = new FarPoint.Win.Spread.NamedStyle("test");
nstyleheaders.BackColor = Color.Red;
fpSpread1.NamedStyles.Add(nstyleheaders);
fpSpread1.Sheets[0].ColumnFooter.DefaultStyle  = nstyleheaders;
fpSpread1.Sheets[0].ColumnFooter.DefaultStyleName  = "test";
Visual BasicCopy Code
FpSpread1.Sheets(0).RowCount = 10
FpSpread1.Sheets(0).ColumnCount = 15
' Show the footer.
FpSpread1.Sheets(0).ColumnFooter.Visible = True
FpSpread1.Sheets(0).ColumnFooter.RowCount = 2

Dim nstyleheaders As New FarPoint.Win.Spread.NamedStyle("test")
nstyleheaders.BackColor = Color.Red
FpSpread1.NamedStyles.Add(nstyleheaders)
FpSpread1.Sheets(0).ColumnFooter.DefaultStyle = nstyleheaders
FpSpread1.Sheets(0).ColumnFooter.DefaultStyleName  = "test"

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.