Spread Windows Forms 11.0 Product Documentation
SheetSkin Constructor(FpSpread)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetSkin Class > SheetSkin Constructor : SheetSkin Constructor(FpSpread)
Spread component
Creates a new skin with the property values of the active sheet of the specified Spread component.
Syntax
'Declaration
 
Public Function New( _
   ByVal spread As FpSpread _
)
'Usage
 
Dim spread As FpSpread
 
Dim instance As New SheetSkin(spread)
public SheetSkin( 
   FpSpread spread
)

Parameters

spread
Spread component
Example
This example creates a new skin and applies it to the sheet in the Spread component.
fpSpread1.ActiveSheet.GrayAreaBackColor = Color.Red;
fpSpread1.ActiveSheet.DefaultStyle.Border = new FarPoint.Win.LineBorder(Color.Black, 2, false, false, true, true);
fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.BackColor = Color.Red;

FarPoint.Win.Spread.SheetSkin skin = new FarPoint.Win.Spread.SheetSkin(fpSpread1);
skin.Apply(fpSpread2);
FpSpread1.ActiveSheet.GrayAreaBackColor = Color.Red
FpSpread1.ActiveSheet.DefaultStyle.Border = New FarPoint.Win.LineBorder(Color.Black, 2, False, False, True, True)
FpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.BackColor = Color.Red

Dim skin As New FarPoint.Win.Spread.SheetSkin(FpSpread1)
skin.Apply(FpSpread2)
See Also

Reference

SheetSkin Class
SheetSkin Members
Overload List