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


Glossary Item Box

Gets or sets the default row height in pixels for all rows in the sheet.

Syntax

Visual Basic (Declaration) 
Public Property DefaultRowHeight As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Integer
 
instance.DefaultRowHeight = value
 
value = instance.DefaultRowHeight
C# 
public int DefaultRowHeight {get; set;}

Property Value

Integer number of pixels in the default row height

Remarks

Set this property to specify the height in pixels for all rows in the sheet. If you want to specify the height for a particular row in the sheet, use the SetRowHeight method or the Height method for a Row object.

To set the width for all columns in the sheet, set the DefaultColumnWidth property.

Example

This example changes the default settings for the width of columns and height of rows of a sheet.
C#Copy Code
FarPoint.Web.Spread.SheetViewsv=FpSpread1.ActiveSheetView;
sv.DefaultColumnWidth=120;
sv.DefaultRowHeight=30;
Visual BasicCopy Code
DimsvAsFarPoint.Web.Spread.SheetView
sv=FpSpread1.ActiveSheetView
sv.DefaultColumnWidth=120
sv.DefaultRowHeight=30

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.