Spread for ASP.NET 12 Product Documentation
Applying a Skin to a Sheet
Spread for ASP.NET 12 Product Documentation > Developer's Guide > Customizing the Appearance > Customizing the Appearance of the Sheet > Applying a Skin to a Sheet

You can quickly customize the appearance of a sheet by applying a "skin" to it. Built-in (default) skins are provided with Spread to create common formats. You can also create your own custom skin and save it to use again, similar to a template.

For an overview and illustrations of sheet skins, see Creating a Skin for Sheets.

Using Code

  1. If you want to create your own sheet skin, follow the instructions provided in Creating a Skin for Sheets to create a sheet skin and apply it. To apply a default sheet skin, follow the rest of these directions.
  2. Use the GetAt method of the DefaultSkins object to specify the index of the default skin to return, then the default skin Apply method to assign it to a specific FpSpread component, collection of sheets, or sheet.

Example

This example code sets the first sheet to use the Colorful2 predefined skin.

C#
Copy Code
FarPoint.Web.Spread.DefaultSkins.Colorful2.Apply(FpSpread1.Sheets[0]);
VB
Copy Code
FarPoint.Web.Spread.DefaultSkins.Colorful2.Apply(FpSpread1.Sheets(0))

Using the Spread Designer

  1. Select the Settings menu.
  2. Select the SheetSkin icon.
  3. In the Pre-Defined tab or the Custom tab, choose the skin to use for the sheet.
  4. Click OK.
  5. Click Apply and Exit to close the Spread Designer.