[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.C1FlexGrid.GetPageImages

GetPageImages Method

GetPageImages(CellRange, ScaleMode, Size, int)

Gets a list of elements that represent parts of the grid fit for rendering into pages of a document.

Declaration
public List<FrameworkElement> GetPageImages(CellRange rng, ScaleMode scaleMode, Size pageSize, int maxPages)
Parameters
Type Name Description
CellRange rng

Range of cells to print.

ScaleMode scaleMode

How to scale the grid to fit on the pages.

Size pageSize

Size of the pages in pixels.

int maxPages

Maximum number of pages to return.

Returns
Type Description
List<FrameworkElement>

A list with elements that correspond to the pages.

Remarks
<p>The elements returned in the list represent portions of the grid 

that correspond to individual pages in a document.

The scaleMode and pageSize 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.

GetPageImages(ScaleMode, Size, int)

Gets a list of elements that represent parts of the grid fit for rendering into pages of a document.

Declaration
public List<FrameworkElement> GetPageImages(ScaleMode scaleMode, Size pageSize, int maxPages)
Parameters
Type Name Description
ScaleMode scaleMode

How to scale the grid to fit on the pages.

Size pageSize

Size of the pages in pixels.

int maxPages

Maximum number of pages to return.

Returns
Type Description
List<FrameworkElement>

A list with elements that correspond to the pages.

Remarks
<p>The elements returned in the list represent portions of the grid 

that correspond to individual pages in a document.

The scaleMode and pageSize 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.