You can set the row height or column width as a specified number of pixels. Each sheet uses and lets you set a default size, making all rows or columns in the sheet the same size. You can override that setting by setting the value for individual rows or columns.
Users can change the row height or column width by dragging the header lines between rows or columns.
For more details refer to the Column.Width method or Row.Height method.
Set the Columns shortcut object Width property. You can use -1 for all columns (Columns[-1]).
This example code sets the second column’s width to 100 pixels.
C# |
Copy Code
|
---|---|
// Set second column width to 100.
fpSpread1.Sheets[0].Columns[1].Width = 100;
|
VB |
Copy Code
|
---|---|
' Set second column width to 100.
fpSpread1.Sheets(0).Columns(1).Width = 100
|
Set the Width property for a Column object.
This example code sets the second column’s width to 100 pixels.
C# |
Copy Code
|
---|---|
FarPoint.Win.Spread.Column Col1; Col1 = fpSpread1.Sheets[0].Columns[1]; Col1.Width = 100; |
VB |
Copy Code
|
---|---|
Dim Col1 As FarPoint.Win.Spread.Column Col1 = fpSpread1.Sheets(0).Columns(1) Col1.Width = 100 |