menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PrintColumnsToFit - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PrintColumnsToFit

    Implements the functionalities for printing the grid with fitted columns in a page.

    Inheritance
    System.Object
    PrintColumnsToFit
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.GridHelperClasses
    Assembly: Syncfusion.GridHelperClasses.Windows.dll
    Syntax
    public class PrintColumnsToFit

    Constructors

    PrintColumnsToFit(GridControlBase, Int32, PrinterSettings)

    Prints the columns to fit into the page.

    Declaration
    public PrintColumnsToFit(GridControlBase grid, int fixedRows, PrinterSettings setting)
    Parameters
    Type Name Description
    GridControlBase grid

    The GridControlBase to be printed.

    System.Int32 fixedRows

    int

    System.Drawing.Printing.PrinterSettings setting

    The printer settings.

    Properties

    NoOfPagesToFitGrid

    Gets or sets the number of pages to fit the grid.

    Declaration
    public int NoOfPagesToFitGrid { get; set; }
    Property Value
    Type
    System.Int32

    ScaleColumnsToFit

    Gets or sets a value indicating whether to ScaleColumnstofit the pages.

    Declaration
    public bool ScaleColumnsToFit { get; set; }
    Property Value
    Type
    System.Boolean

    ScaleColumnsToFitPage

    Gets or sets a value indicating whether columns can be fitted in a page.

    Declaration
    public bool ScaleColumnsToFitPage { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    ComputePageBreaks(Rectangle, out Int32)

    Calculates the row breaks for ScaleColumnsToFit, for ScaleColumnsToFitPage it will calculate the column breaks...

    Declaration
    public void ComputePageBreaks(Rectangle printArea, out int maxPages)
    Parameters
    Type Name Description
    System.Drawing.Rectangle printArea

    The printing area.

    System.Int32 maxPages

    The maximum pages count.

    PrepareGridImage()

    Prepare the grid image as a metafile....

    Declaration
    public void PrepareGridImage()

    PrintPage(Rectangle, Graphics)

    Prints the grid.

    Declaration
    public bool PrintPage(Rectangle printArea, Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Rectangle printArea

    The printing area.

    System.Drawing.Graphics g

    The graphics.

    Returns
    Type Description
    System.Boolean

    True if the page is printed otherwise false.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved