Spread Windows Forms 9.0 Product Documentation
Height Property (Row)
Example 


Gets or sets the height of this row in pixels.
Syntax
'Declaration
 
Public Property Height As Single
'Usage
 
Dim instance As Row
Dim value As Single
 
instance.Height = value
 
value = instance.Height
public float Height {get; set;}

Property Value

Value of the height in pixels
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException Specified height is out of range; must be between -1 and 9,999,999 pixels
Remarks

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.

Example
This example specifies the height for the cells in the row.
FarPoint.Win.Spread.Row r;
r = fpSpread1.ActiveSheet.Rows[0];
r.Height = 70;
Dim r As FarPoint.Win.Spread.Row
r = FpSpread1.ActiveSheet.Rows(0)
r.Height = 70
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

Row Class
Row Members

User-Task Documentation

Setting the Row Height or Column Width

 

 


Copyright © GrapeCity, inc. All rights reserved.