Spread for ASP.NET 7.0 Product Documentation
GetRowHeight Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetRowHeight Method


row
Row index

Glossary Item Box

Gets the height of the specified row.

Syntax

Visual Basic (Declaration) 
Public Function GetRowHeight( _
   ByVal row As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim value As Integer
 
value = instance.GetRowHeight(row)
C# 
public int GetRowHeight( 
   int row
)

Parameters

row
Row index

Return Value

Integer with the row height in pixels

Remarks

To specify the height for a row, use the SetRowHeight method.

Note: The value returned by this method does not include the width of the adjacent grid line.

The default height for rows in the sheet is determined by the DefaultRowHeight property.

If you prefer, you can allow users to resize rows by calling the SetRowSizeable method.

To see the width for a column, use the GetColumnWidth method.

Example

This example returns the height of the specified row.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
int i;
sv = FpSpread1.ActiveSheetView;
i = sv.GetRowHeight(1);
Response.Write("The height of the row is " + i.ToString());
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
Dim i As Integer
sv = FpSpread1.ActiveSheetView
i = sv.GetRowHeight(1)
Response.Write("The height of the row is " & i)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.