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:
Set the BackgroundImageUrl, SelectionBackColor, and default header and corner styles.
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" |