Spread Windows Forms 7.0 Product Documentation
Loading a Skin
Support Options
Spread Windows Forms 7.0 Product Documentation > Developer's Guide > Managing File Operations > Saving and Loading a Skin > Loading a Skin

Glossary Item Box

You can load a skin from a file or a stream.

Use the Load methods in the SheetSkin or SpreadSkin class.

Using Code

Use the Load(String) method in the SheetSkin class (or SpreadSkin class) for loading from a file; use the Load(Stream) method for loading from a stream.

Example

This example code loads a skin from a file on the C: drive.

C# Copy Code
// load a sheet skin
FarPoint.Win.Spread.SheetSkin.Load("C:\\BlueSkinTemplate.skn").Apply(FpSpread1.Sheets[0];
// load a spread Skin
// FarPoint.Win.Spread.SpreadSkin.Load("C:\\farpoint.skn").Apply (FpSpread1);
VB Copy Code
' load a sheet skin
FarPoint.Win.Spread.SheetSkin.Load("C:\BlueSkinTemplate.skn").Apply(FpSpread1.Sheets(0))
' load a Spread Skin
'FarPoint.Win.Spread.SpreadSkin.Load("C:\farpoint.skn").Apply(FpSpread1)
© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.