'Declaration
Public Overloads Function GetPageImages( _ ByVal scaleMode As ScaleMode, _ ByVal pageSize As Size, _ ByVal margin As Thickness, _ ByVal maxPages As Integer, _ ByVal showPageInfo As Boolean, _ ByRef verticalPageCount As Integer _ ) As List(Of FrameworkElement)
public List<FrameworkElement> GetPageImages( ScaleMode scaleMode, Size pageSize, Thickness margin, int maxPages, bool showPageInfo, out int verticalPageCount )
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.
- showPageInfo
- Indicates whether page info like a page number/count should be added to the generated images.
- 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 verticalPageCount parameter.
Return Value
A list with elements that correspond to the pages.