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


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

Reference

SheetSkin Class
SheetSkin Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.