Spread ASP.NET 6.0 Product Documentation
SetRowHeight Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SetRowHeight Method


row
Row index
value
Number of pixels for the height of the row

Glossary Item Box

Sets the height of the specified row in pixels.

Syntax

Visual Basic (Declaration) 
Public Sub SetRowHeight( _
   ByVal row As Integer, _
   ByVal value As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim value As Integer
 
instance.SetRowHeight(row, value)
C# 
public void SetRowHeight( 
   int row,
   int value
)

Parameters

row
Row index
value
Number of pixels for the height of the row

Remarks

Get the height for a row by calling the GetRowHeight method.

Note: The value set by the SetRowHeight 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.

Set the width for a column by calling the SetColumnWidth method.

Example

This example illustrates the use of this member by setting the height for the specified row.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.SetRowHeight(1, 40);
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.SetRowHeight(1, 40)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.