Spread for ASP.NET 11 Product Documentation
SheetSkin Constructor(SheetView)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetSkin Class > SheetSkin Constructor : SheetSkin Constructor(SheetView)
SheetView, or null to initialize using DefaultSkins.Default
Creates a new skin with the property settings of the specified sheet.
Syntax
'Declaration
 
Public Function New( _
   ByVal sheetView As SheetView _
)
'Usage
 
Dim sheetView As SheetView
 
Dim instance As New SheetSkin(sheetView)
public SheetSkin( 
   SheetView sheetView
)

Parameters

sheetView
SheetView, or null to initialize using DefaultSkins.Default
Remarks
This method initializes an instance of the SheetSkin class and initializes it with the property values of the specified SheetView object.
Example
This example creates a new skin and applies it to the component.
FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView();
sv.DefaultStyle.BackColor = Color.Wheat;
sv.ColumnHeader.DefaultStyle.BackColor = Color.LightGreen;
sv.RowHeader.DefaultStyle.BackColor = Color.YellowGreen;

FarPoint.Web.Spread.SheetSkin sk = new FarPoint.Web.Spread.SheetSkin(sv);
sk.Apply(FpSpread1);
Dim sv As New FarPoint.Web.Spread.SheetView
sv.DefaultStyle.BackColor = Color.Wheat
sv.ColumnHeader.DefaultStyle.BackColor = Color.LightGreen
sv.RowHeader.DefaultStyle.BackColor = Color.YellowGreen

Dim sk As New FarPoint.Web.Spread.SheetSkin(sv)
sk.Apply(FpSpread1)
See Also

Reference

SheetSkin Class
SheetSkin Members
Overload List