Spread Windows Forms 6.0 Product Documentation
SheetSkin Constructor(SheetView)
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetSkin Class > SheetSkin Constructor : SheetSkin Constructor(SheetView)


sheetView
Sheet (SheetView object), 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
Sheet (SheetView object), or null to initialize using DefaultSkins.Default

Example

This example creates a new skin and applies it to the sheet in the Spread component.
C#Copy Code
FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView();
sv.GrayAreaBackColor = Color.White;
sv.DefaultStyle.Border = new FarPoint.Win.LineBorder(Color.Black, 2, false, false, true, true);
sv.ColumnHeader.DefaultStyle.BackColor = Color.Red;

FarPoint.Win.Spread.SheetSkin skin = new FarPoint.Win.Spread.SheetSkin(sv);
skin.Apply(fpSpread1);
Visual BasicCopy Code
Dim sv As New FarPoint.Win.Spread.SheetView()
sv.GrayAreaBackColor = Color.White
sv.DefaultStyle.Border = New FarPoint.Win.LineBorder(Color.Black, 2, False, False, True, True)
sv.ColumnHeader.DefaultStyle.BackColor = Color.Red

Dim sk As New FarPoint.Win.Spread.SheetSkin(sv)
sk.Apply(FpSpread1)

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.