Spread ASP.NET 6.0 Product Documentation
SheetSkin Constructor(SheetView)
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetSkin Class > SheetSkin Constructor : SheetSkin Constructor(SheetView)


sheetView
SheetView, or null to initialize using DefaultSkins.Default

Glossary Item Box

Creates a new skin with the property settings of the specified sheet.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal sheetView As SheetView _
)
Visual Basic (Usage)Copy Code
Dim sheetView As SheetView
 
Dim instance As New SheetSkin(sheetView)
C# 
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.
C#Copy Code
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);
Visual BasicCopy Code
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)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.