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:
- ColumnHeader.Height
- RowHeader.Width
- SheetView.ColumnHeaderHeight
- SheetView.RowHeaderWidth
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.
Using Code
Example
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
|
Using the Spread Designer
- Select the Settings menu.
- Select the Header Editor icon in the Other Settings section.
- Select the header you wish to edit.
- Set the height or width properties.
- Choose Apply and OK to apply your changes to the component.
- Click Apply and Exit to close the Spread Designer.