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
- 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.
- 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
- Select the Settings menu.
- Select the SheetSkin icon.
- In the Pre-Defined tab or the Custom tab, choose the skin to use for the sheet.
- Click OK.
- Click Apply and Exit to close the Spread Designer.