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

Namespace:  C1.Silverlight.FlexGrid
Assembly:  C1.Silverlight.FlexGrid.4 (in C1.Silverlight.FlexGrid.4.dll)

Syntax

C#
public List<FrameworkElement> GetPageImages(
	CellRange printRange,
	ScaleMode scaleMode,
	Size pageSize,
	int maxPages
)
Visual Basic
Public Function GetPageImages ( _
	printRange As CellRange, _
	scaleMode As ScaleMode, _
	pageSize As Size, _
	maxPages As Integer _
) As List(Of FrameworkElement)

Parameters

printRange
Type: C1.Silverlight.FlexGrid..::..CellRange
Range of cells to print.
scaleMode
Type: C1.Silverlight.FlexGrid..::..ScaleMode
How to scale the grid to fit on the pages.
pageSize
Type: System.Windows..::..Size
Size of the pages in pixels.
maxPages
Type: System..::..Int32
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 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.

See Also