Spread ASP.NET 6.0 Product Documentation
Customizing the Default Initial Appearance
Send Feedback
Spread ASP.NET 6.0 Product Documentation > Developer's Guide > Customizing the Appearance > Customizing the Appearance of the Overall Component > Customizing the Default Initial Appearance

Glossary Item Box

You can set the default initial appearance.

The following API members are involved in the default appearance.

You can change the font size for the entire component using the underlying Web controls properties. For example, you can set the font size to 14 point using this command in code:

VB Copy Code
FpSpread1.ActiveSheetView.DefaultStyle.Font.Size = 
System.Web.UI.WebControls.FontUnit.Point(14)

You can set the default appearance to the version 3 appearance with the following code:

Using Code

Set the BackGroundImageUrl, SelectionBackColor, and default header and corner styles .

Example

This example shows how to set the control to the version 3 appearance.

C# Copy Code
FpSpread1.CommandBar.Background.BackgroundImageUrl = NULL;
FpSpread1.Sheets[0].SelectionBackColor = Color.Empty;
FpSpread1.Sheets[0].ColumnHeader.DefaultStyleName = "HeaderDefault";
FpSpread1.Sheets[0].RowHeader.DefaultStyleName = "HeaderDefault";
FpSpread1.Sheets[0].SheetCorner.DefaultStyleName = "HeaderDefault";
VB Copy Code
FpSpread1.CommandBar.Background.BackgroundImageUrl = Nothing
FpSpread1.Sheets(0).SelectionBackColor = Color.Empty
FpSpread1.Sheets(0).ColumnHeader.DefaultStyleName = "HeaderDefault"
FpSpread1.Sheets(0).RowHeader.DefaultStyleName = "HeaderDefault"
FpSpread1.Sheets(0).SheetCorner.DefaultStyleName = "HeaderDefault"

Return to the component appearance overview at Customizing the Appearance of the Overall Component.

© 2002-2012 GrapeCity, Inc. All Rights Reserved.