Creates a new skin with the property values of the active sheet of the specified Spread component.
Syntax
Visual Basic (Declaration) | |
---|
Public Function New( _
ByVal spread As FpSpread _
) |
Visual Basic (Usage) | Copy Code |
---|
Dim spread As FpSpread
Dim instance As New SheetSkin(spread) |
Parameters
- spread
- Spread component
Example
This example creates a new skin and applies it to the sheet in the Spread component.
C# | Copy Code |
---|
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); |
Visual Basic | Copy Code |
---|
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) |
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also