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


In This Topic
    BestFitRows Property
    In This Topic
    Gets or sets whether row heights are adjusted to fit the tallest text height for printing.
    Syntax
    'Declaration
     
    <DefaultValueAttribute(False)>
    Public Property BestFitRows As Boolean
    'Usage
     
    Dim instance As PrintInfo
    Dim value As Boolean
     
    instance.BestFitRows = value
     
    value = instance.BestFitRows
    [DefaultValue(false)]
    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.
    Example
    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