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 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