The skin applied to the control is defined in the SpreadSkin class. You can apply built-in skins (default skin) for creating common formats and custom skins that you create yourself. The built-in skins are defined in the DefaultSkins class. If no skin is applied to the spreadsheet component then default skin (Excel 2016 Colorful) is used. Refer to the following image for the same.
For more information and instructions about | See |
---|---|
Creating and applying your own skins | Creating a Custom Skin for a Component |
Creating and applying your own cell-level styles | Creating and Applying a Style for Cells |
Saving the skin to a file or stream | Saving and Loading a Skin |
Customizing a skin in the Spread Designer | SpreadSkin Editor |
Spread skins | SpreadSkin class |
This example code sets the component to use the Classic predefined skin.
C# |
Copy Code
|
---|---|
FarPoint.Win.Spread.DefaultSpreadSkins.Classic.Apply(fpSpread1); |
VB |
Copy Code
|
---|---|
FarPoint.Win.Spread.DefaultSpreadSkins.Classic.Apply(fpSpread1) |
This example code sets the first sheet to use the Classic predefined skin.
C# |
Copy Code
|
---|---|
// Create new SheetView object. FarPoint.Win.Spread.SheetView newsheet = new FarPoint.Win.Spread.SheetView(); // Apply a skin to the SheetView object. FarPoint.Win.Spread.DefaultSpreadSkins.Classic.Apply(newsheet); // Assign the SheetView object to the first sheet in the component. fpSpread1.Sheets[0] = newsheet; |
VB |
Copy Code
|
---|---|
' Create new SheetView object. Dim newsheet As New FarPoint.Win.Spread.SheetView() ' Apply a skin to the SheetView object. FarPoint.Win.Spread.DefaultSpreadSkins.Classic.Apply(newsheet) ' Assign the SheetView object to the first sheet in the component. fpSpread1.Sheets(0) = newsheet |