Class PrintSettings
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class PrintSettings : Object, INotifyPropertyChanged
Constructors
PrintSettings()
Initializes a new instance of PrintSettings class.
Declaration
public PrintSettings()
Properties
AllowColumnWidthFitToPrintPage
Gets or sets a value that indicates whether the all the column width fit with in single page .
Declaration
public bool AllowColumnWidthFitToPrintPage { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if all the column width fit with in single page; otherwise, false. |
AllowPrintStyles
Get or sets a value that indicates whether the style is allowed for printing.
Declaration
public bool AllowPrintStyles { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the style is allowed for printing; otherwise, false. |
AllowRepeatHeaders
Gets or sets a value that indicates whether the column headers repeated for all pages for printing.
Declaration
public bool AllowRepeatHeaders { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the column headers repeated for all pages; otherwise, false. |
CanPrintStackedHeaders
Gets or sets a value that indicates whether the stacked header included for printing.
Declaration
public bool CanPrintStackedHeaders { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the SfDataGrid is printed with stacked header; otherwise, false. |
PrintFlowDirection
Gets or sets the direction of text displayed in page for printing.
Declaration
public FlowDirection PrintFlowDirection { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.FlowDirection | One of the |
PrintHeaderRowHeight
Gets or sets the height of header row in SfDataGrid for printing.
Declaration
public double PrintHeaderRowHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the header row in SfDataGrid. |
PrintManagerBase
Gets or sets an instance of the PrintManagerBase which manages the printing operation in SfDataGrid.
Declaration
public PrintManagerBase PrintManagerBase { get; set; }
Property Value
Type | Description |
---|---|
PrintManagerBase | An instance of the PrintManagerBase class. |
Remarks
PrintManagerBase class provides various properties and virtual methods to customize its operations.
PrintPageFooterHeight
Gets or sets the height of the page footer for printing.
Declaration
public double PrintPageFooterHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the page footer. |
PrintPageFooterTemplate
Gets or sets
Declaration
public DataTemplate PrintPageFooterTemplate { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.DataTemplate | The object that defines the visual representation of the page footer. The default is null. |
PrintPageHeaderHeight
Gets or sets the height of the page header for printing.
Declaration
public double PrintPageHeaderHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the page header. |
PrintPageHeaderTemplate
Gets or sets
Declaration
public DataTemplate PrintPageHeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.DataTemplate | The object that defines the visual representation of the page header. The default is null. |
PrintPageHeight
Gets or sets the height of a page for printing.
Declaration
public double PrintPageHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of a page for printing. |
PrintPageMargin
Gets or sets the margin of page for printing.
Declaration
public Thickness PrintPageMargin { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Thickness | The Thickness of page for printing. |
PrintPageOrientation
Gets or sets the
Declaration
public PrintOrientation PrintPageOrientation { get; set; }
Property Value
Type | Description |
---|---|
Windows.Graphics.Printing.PrintOrientation | One of the |
PrintPageWidth
Gets or sets the width of a page for printing.
Declaration
public double PrintPageWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of a page for printing. |
PrintRowHeight
Gets or sets the height of DataRow in SfDataGrid for printing.
Declaration
public double PrintRowHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the DataRow in SfDataGrid. |
PrintScaleOption
Gets or sets the PrintScaleOptions that indicates the number of rows or columns are scaled to fit the page when it is printed.
Declaration
public PrintScaleOptions PrintScaleOption { get; set; }
Property Value
Type | Description |
---|---|
PrintScaleOptions | One of the PrintScaleOptions enumeration that specifies how the rows or columns are scaled to fit the page. The default value is NoScaling. |
Events
PropertyChanged
Occurs when a property value changes in PrintSettings class.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |