Class PrintingService
Represent the class for printing services of diagram control.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class PrintingService : Control, INotifyPropertyChanged, ISharedData, IDisposable
Constructors
PrintingService()
Initializes a new instance of the PrintingService method.
Declaration
public PrintingService()
Fields
_mShowDialog
Defines ShowDialog
Declaration
public bool _mShowDialog
Field Value
Type |
---|
System.Boolean |
Properties
DPIX
Gets or sets the horizontal resolution of the printing.
Declaration
public double DPIX { get; set; }
Property Value
Type |
---|
System.Double |
DPIY
Gets or sets the vertical resolution of the printing.
Declaration
public double DPIY { get; set; }
Property Value
Type |
---|
System.Double |
PrintManager
Gets or sets the DiagramPrintManager.
Declaration
public DiagramPrintManager PrintManager { get; set; }
Property Value
Type |
---|
DiagramPrintManager |
PrintMediaSize
Gets or sets PrintMediaSize
Declaration
public PageMediaSizeName PrintMediaSize { get; set; }
Property Value
Type |
---|
System.Printing.PageMediaSizeName |
PrintOrientation
Gets or sets Print Orientation
Declaration
public PageOrientation PrintOrientation { get; set; }
Property Value
Type |
---|
PageOrientation |
PrintPreviewStretch
Gets or sets PrintPreviewStretch
Declaration
public Stretch PrintPreviewStretch { get; set; }
Property Value
Type |
---|
System.Windows.Media.Stretch |
PrintSettings
Gets or sets the PrintSettingsBase.
Declaration
public PrintSettingsBase PrintSettings { get; set; }
Property Value
Type |
---|
PrintSettingsBase |
ShowDialog
Gets or sets ShowDialog
Declaration
public bool ShowDialog { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
GetPrintInfo(PrintInfo)
Specifies a method to customize the printing.
Declaration
protected virtual void GetPrintInfo(PrintInfo args)
Parameters
Print()
Used to print the diagram in advance mode.
Declaration
public void Print()
ShowClassicPrintPreview()
Specifies the method to print the diagram in Classic mode.
Declaration
public void ShowClassicPrintPreview()
ShowPrintDialog(FrameworkElement, PrintPreviewControl)
Initializes a new instance of the ShowPrintDialog(FrameworkElement, PrintPreviewControl) method.
Declaration
public void ShowPrintDialog(FrameworkElement element, PrintPreviewControl printpreview)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | element | Gets element value. |
PrintPreviewControl | printpreview | Gets printpreview value. |
Events
PropertyChanged
Defines PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |
Explicit Interface Implementations
IDisposable.Dispose()
Defines the Dispose of the printing
Declaration
void IDisposable.Dispose()