Visual Basic (Declaration) | |
---|---|
Public Property Height As Single |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As Row Dim value As Single instance.Height = value value = instance.Height |
C# | |
---|---|
public float Height {get; set;} |
Property Value
Value of the height in pixelsException | Description |
---|---|
System.ArgumentOutOfRangeException | Specified height is out of range; must be between -1 and 9,999,999 pixels |
This is equivalent to the SheetView.SetRowHeight method. For more information on setting the size of the row, refer to Setting the Row Height or Column Width.
Row heights can be based on the data in the cells using the GetPreferredHeight method or SheetView.GetPreferredRowHeight method. For more information, see Resizing the Row and Column to Fit the Data.
You can allow users to resize row by setting the Resizable property. If the user is allowed to resize rows, when the user resizes a row, the FpSpread.RowHeightChanged and SheetView.RowChanged events occur.
C# | Copy Code |
---|---|
FarPoint.Win.Spread.Row r; r = fpSpread1.ActiveSheet.Rows[0]; r.Height = 70; |
Visual Basic | Copy Code |
---|---|
Dim r As FarPoint.Win.Spread.Row r = FpSpread1.ActiveSheet.Rows(0) r.Height = 70 |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2