Interface IGridPrintPaginator
Provides properties and methods for implementing a print paginator for grid.
Namespace: Syncfusion.Windows.Documents
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public interface IGridPrintPaginator
Properties
PrintDescription
Gets or sets the print content.
Declaration
string PrintDescription { get; set; }
Property Value
Type |
---|
System.String |
PrintFooterHeight
Gets or sets the height of the print footer.
Declaration
double PrintFooterHeight { get; set; }
Property Value
Type |
---|
System.Double |
PrintFooterTemplate
Gets or sets the print footer template.
Declaration
DataTemplate PrintFooterTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
PrintHeaderHeight
Gets or sets the height of the print header.
Declaration
double PrintHeaderHeight { get; set; }
Property Value
Type |
---|
System.Double |
PrintHeaderTemplate
Declaration
DataTemplate PrintHeaderTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
PrintPageMargin
Gets or sets the margin of printpage.
Declaration
Thickness PrintPageMargin { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
PrintRange
Gets or sets the range of grid cells to be printed.
Declaration
GridRangeInfo PrintRange { get; set; }
Property Value
Type |
---|
GridRangeInfo |
Methods
GetPrintTotalPageCount(Size)
Returns the rows per page based on the UIElement's available space
Declaration
int GetPrintTotalPageCount(Size printSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | printSize | Print size. |
Returns
Type | Description |
---|---|
System.Int32 | Rows per page. |
GetPrintVisualAt(Int32, Size)
Gets the visual of the given page.
Declaration
FrameworkElement GetPrintVisualAt(int pageNumber, Size PageSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageNumber | The page no. for which to return the visual. |
System.Windows.Size | PageSize |
Returns
Type | Description |
---|---|
System.Windows.FrameworkElement | The visual of the given page. |
SetPrintPageSize(Size)
Sets the print page size based on the print size.
Declaration
void SetPrintPageSize(Size printSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | printSize | Print size. |