FlexGrid for WPF | ComponentOne
C1.WPF.Grid Assembly / C1.WPF.Grid Namespace / FlexGrid Class / GetPageImages Method / GetPageImages(GridCellRange,GridScaleMode,Size,Int32) Method
Range of cells to print.
How to scale the grid to fit on the pages.
Size of the content area of pages in pixels.
Maximum number of pages to return.

In This Topic
    GetPageImages(GridCellRange,GridScaleMode,Size,Int32) Method
    In This Topic
    Gets a list of elements that represent parts of the grid fit for rendering into pages of a document.
    Syntax
    'Declaration
     
    Public Overloads Function GetPageImages( _
       ByVal rng As GridCellRange, _
       ByVal scaleMode As GridScaleMode, _
       ByVal contentSize As Size, _
       ByVal maxPages As Integer _
    ) As List(Of FrameworkElement)
    public List<FrameworkElement> GetPageImages( 
       GridCellRange rng,
       GridScaleMode scaleMode,
       Size contentSize,
       int maxPages
    )

    Parameters

    rng
    Range of cells to print.
    scaleMode
    How to scale the grid to fit on the pages.
    contentSize
    Size of the content area of pages in pixels.
    maxPages
    Maximum number of pages to return.

    Return Value

    A list with elements that correspond to the pages.
    Remarks

    The elements returned in the list represent portions of the grid that correspond to individual pages in a document.

    The scaleMode and contentSize parameters define how many pages are returned and the data contained in each page.

    The elements returned in the list may be rendered directly into the document (by assigning them to the PageVisual property of the PrintPage event parameter), or they may be combined with other elements in a template to provide a letterhead, headers, footers, and additional document content.

    Remember to call DisposePageImages after done using the page image to release memory.
    See Also