Class GridPrintDialog
Implements a print dialog for the grid. It defines the designer for the Print dialog and exposes a number of properties and APIs to handle the UI requirements and define the interaction logic for the Print Dialog. The users can use these properties to configure the Print and Print Preview options.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridPrintDialog : ChromelessWindow, IComponentConnector
Constructors
GridPrintDialog(GridControlBase)
Initializes a new GridPrintDialog.
Declaration
public GridPrintDialog(GridControlBase gridControlBase)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | gridControlBase | The parent grid. |
Fields
CurrentPageProperty
Declaration
public static readonly DependencyProperty CurrentPageProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PrintDataColumnNamesProperty
Declaration
public static readonly DependencyProperty PrintDataColumnNamesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ScalingOptionsProperty
Declaration
public static readonly DependencyProperty ScalingOptionsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
CanMoveFirst
Specifies whether it is possible to navigate to the first page.
Declaration
public bool CanMoveFirst { get; }
Property Value
Type |
---|
System.Boolean |
CanMoveLast
Specifies whether it is possible to navigate to the last page.
Declaration
public bool CanMoveLast { get; }
Property Value
Type |
---|
System.Boolean |
CanMoveNext
Specifies whether it is possible to navigate to the next page.
Declaration
public bool CanMoveNext { get; }
Property Value
Type |
---|
System.Boolean |
CanMovePrevious
Specifies whether it is possible to navigate to the previous page.
Declaration
public bool CanMovePrevious { get; }
Property Value
Type |
---|
System.Boolean |
CurrentOutputColor
Gets or sets the print color.
Declaration
public OutputColor CurrentOutputColor { get; set; }
Property Value
Type |
---|
System.Printing.OutputColor |
CurrentPage
Gets or sets the current printing page.
Declaration
public int CurrentPage { get; set; }
Property Value
Type |
---|
System.Int32 |
CurrentPageMediaSize
Gets or sets the page size of the print media (eg. paper size).
Declaration
public PageMediaSizeName CurrentPageMediaSize { get; set; }
Property Value
Type |
---|
System.Printing.PageMediaSizeName |
CurrentZoomFactor
Gets or sets the zoom factor for print preview.
Declaration
public object CurrentZoomFactor { get; set; }
Property Value
Type |
---|
System.Object |
PrintDataColumnNames
Get or set the names of columns to be printed
Declaration
public StringCollection PrintDataColumnNames { get; set; }
Property Value
Type |
---|
System.Collections.Specialized.StringCollection |
PrintSize
Gets or sets the size of the content to be printed.
Declaration
public Size PrintSize { get; set; }
Property Value
Type |
---|
System.Windows.Size |
ScalingOptions
Get or set the names of columns to be printed
Declaration
public ScalingOptions ScalingOptions { get; set; }
Property Value
Type |
---|
ScalingOptions |
Methods
ApplyTheme()
Declaration
protected virtual void ApplyTheme()
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()