Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / DefaultRowHeight Property
Example


In This Topic
    DefaultRowHeight Property
    In This Topic
    Gets or sets the default row height in pixels for all rows in the sheet.
    Syntax
    'Declaration
     
    Public Property DefaultRowHeight As Integer
    'Usage
     
    Dim instance As SheetView
    Dim value As Integer
     
    instance.DefaultRowHeight = value
     
    value = instance.DefaultRowHeight
    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.
    FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView;
    sv.DefaultColumnWidth=120;
    sv.DefaultRowHeight=30;
    Dim sv As FarPoint.Web.Spread.SheetView
    sv=FpSpread1.ActiveSheetView
    sv.DefaultColumnWidth=120
    sv.DefaultRowHeight=30
    See Also