Monday, September 08, 2008  



 FarPoint Technologies
 (800) 645-5913

 fpsales@fpoint.com



     
 »Spread for Windows Forms » Product Tour » Import Export » Skin

Previous Saving and Loading a Skin Next

You can save the sheet skin settings to a file (.SKN) and then load it into another project or use it as a template for all projects.

  Back to Top
 Saving a Skin
You can create your own custom skin that can be shared across projects or your organization by defining and  saving a sheet skin to a file or stream.

// Define a custom skin and save it
FarPoint.Win.Spread.SheetSkin sk = new FarPoint.Win.Spread.SheetSkin("BlueSkin", Color.White, Color.DarkGray, Color.Black, Color.Blue, FarPoint.Win.Spread.GridLines.Both, Color.Blue, Color.Red, Color.White, Color.Black, Color.LightGray, Color.Gray, False, False, True, True, True);
FarPoint.Win.Spread.SheetSkin.Save(sk,"C:\\BlueSkinTemplate.skn");

' Define a custom skin and save it
Dim sk As New FarPoint.Win.Spread.SheetSkin("BlueSkin", Color.White, Color.DarkGray, Color.Black, Color.Blue,FarPoint.Win.Spread.GridLines.Both, Color.Blue, Color.Red, Color.White, Color.Black, Color.LightGray, Color.Gray, False, False, True, True, True)

FarPoint.Win.Spread.SheetSkin.Save(sk,"C:\BlueSkinTemplate.skn")


  Back to Top
 Loading a Skin
You can load a pre-defined Spread sheet skin or a custom skin from a file or stream.

' load your custom skin
FarPoint.Win.Spread.SheetSkin.Load("C:\BlueSkinTemplate.skn")

' load the 10th built-in skin to the first sheet
FarPoint.Win.Spread.DefaultSkins.GetAt(10).Apply(FpSpread1.Sheets(0))


Previous Saving and Loading a Skin Next

    
 Have a question?
Have a Question? Ask Us!
Subscribe to the RSS feed!RSS Subscribe
 

 
Learn about the new Roadshow now!

Tour Home
Overview
Appearance
User Interaction
Cell Types
Formulas
Managing Data
Data Binding
Import/Export
Printing
Keyboard Interaction
Shapes
Models
Spread Designer
 
Map

Copyright © 1991-2007 FarPoint Technologies, Inc. All rights reserved. All names are property of their respective owners.