Class PivotGridPrintDocument
Class that holds the members that print the pages in PivotGrid view.
Inheritance
System.Object
PivotGridPrintDocument
Implements
Namespace: Syncfusion.Windows.Controls.PivotGrid
Assembly: Syncfusion.PivotAnalysis.WPF.dll
Syntax
public class PivotGridPrintDocument : Object, IPrintDocument
Constructors
PivotGridPrintDocument(PivotGridControl)
A constructor that initializes the print pages with PivotGrid view.
Declaration
public PivotGridPrintDocument(PivotGridControl grid)
Parameters
Type | Name | Description |
---|---|---|
PivotGridControl | grid | The PivotGrid control. |
Properties
Margin
Gets or sets the thickness of outer border of the framework element.
Declaration
public Thickness Margin { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
PageSize
Gets or sets the size of the print page.
Declaration
public Size PageSize { get; set; }
Property Value
Type |
---|
System.Windows.Size |
PrintablePageSize
Gets or sets the client size of the print page.
Declaration
public Size PrintablePageSize { get; set; }
Property Value
Type |
---|
System.Windows.Size |
TotalPages
Gets or sets the total pages to print.
Declaration
public int TotalPages { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
GetPage(Int32)
A method that returns print visual of the respective page.
Declaration
public FrameworkElement GetPage(int pageNo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageNo | Page number which needs to be printed. |
Returns
Type | Description |
---|---|
System.Windows.FrameworkElement | Framework element. |
OnSetPageSize()
A method that sets the size of print page and count of total pages.
Declaration
public void OnSetPageSize()