Spread WinRT Documentation
GrapeCity.Xaml.SpreadSheet.Data Namespace / PrintInfo Class / BestFitRows Property

In This Topic
    BestFitRows Property
    In This Topic
    Gets or sets whether row heights are adjusted to fit the tallest text height for printing.
    Public Property BestFitRows As Boolean
    Dim instance As PrintInfo
    Dim value As Boolean
    instance.BestFitRows = value
    value = instance.BestFitRows
    public bool BestFitRows {get; set;}

    Property Value

    true if the row heights are adjusted to fit the tallest text for printing; otherwise, false. The default value is false.
    This example sets the BestFitRows property.
    GrapeCity.Xaml.SpreadSheet.Data.PrintInfo printset = new GrapeCity.Xaml.SpreadSheet.Data.PrintInfo();
    printset.BestFitRows = true;
    printset.Centering = GrapeCity.Xaml.SpreadSheet.Data.Centering.Both;
    printset.ColumnEnd = 10;
    printset.ColumnStart = 0;
    gcSpreadSheet1.Sheets[0].PrintInfo = printset;
    Dim printset As New GrapeCity.Xaml.SpreadSheet.Data.PrintInfo()
    printset.BestFitRows = True
    printset.Centering = GrapeCity.Xaml.SpreadSheet.Data.Centering.Both
    printset.ColumnEnd = 10
    printset.ColumnStart = 0
    GcSpreadSheet1.Sheets(0).PrintInfo = printset
    See Also