Gets a list of elements that represent parts of the grid fit for rendering into pages of a document.
'Declaration
Public Overloads Function GetPageImages( _
ByVal As ScaleMode, _
ByVal As System.Windows.Size, _
ByVal As System.Windows.Thickness, _
ByVal As System.Integer, _
ByRef As System.Integer _
) As System.Collections.Generic.List(Of FrameworkElement)
public System.Collections.Generic.List<FrameworkElement> GetPageImages(
ScaleMode ,
System.Windows.Size ,
System.Windows.Thickness ,
System.int ,
out System.int
)
Parameters
- scaleMode
- How to scale the document to fit the pages.
- pageSize
- Size of the pages in pixels.
- margin
- Margin around the page in pixels.
- maxPages
- The maximum number of pages to print.
- verticalPageCount
- Returns the number of vertical pages. Note that if C1DataGrid width doesn't fit to the specified page width, each vertical page is additionally split horizontally to subpages that fit to the specified width, so one vertical page is represented by multiple items in the collection returned by this method. This out parameter returns the number of vertical pages, that doesn't take into account horizontal splits. The number of horizontal subpages for each vertical page can be calculated by dividing the number of items returned by this method by the value returned in the parameter.
Return Value
A list with elements that correspond to the pages.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2