Spread for ASP.NET 10 Product Documentation > Developer's Guide > Customizing the Appearance > Customizing the Appearance of Headers > Setting the Size of Header Cells |
You can customize the appearance of header cells by changing the row height or column width, or both, for any of the rows or columns of headers. You can change the size by setting properties in the RowHeader class for the row header or the ColumnHeader class for the column header or both, or use the respective SheetView class properties. Use these properties:
You can also use the Spread Designer to set the width and height of header cells.
For information on setting the size of cells in the data area, refer to Setting the Row Height or Column Width.
Set the height or width for the headers.
This example code sets the height and width of the headers.
C# |
Copy Code
|
---|---|
// Set the height and width for the headers.
FpSpread1.Sheets[0].ColumnHeader.Height = 60;
FpSpread1.Sheets[0].RowHeader.Width = 60;
|
VB |
Copy Code
|
---|---|
' Set the height and width for the headers.
FpSpread1.Sheets(0).ColumnHeader.Height = 60
FpSpread1.Sheets(0).RowHeader.Width = 60
|