Class PrintingService
Represent the class for printing services of diagram control.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public class PrintingService : Control, INotifyPropertyChanged, ISharedData, IDisposable
Constructors
PrintingService()
Constructs a new instance of the PrintingService class.
Declaration
public PrintingService()
Properties
DPIX
Declaration
public double DPIX { get; set; }
Property Value
Type |
---|
System.Double |
DPIY
Declaration
public double DPIY { get; set; }
Property Value
Type |
---|
System.Double |
PrintMargin
Gets or sets PrintMargin
Declaration
public Thickness PrintMargin { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Thickness |
PrintMediaSize
Gets or sets Print Media Size
Declaration
public PrintMediaSize PrintMediaSize { get; set; }
Property Value
Type |
---|
Windows.Graphics.Printing.PrintMediaSize |
PrintOrientation
Gets or sets Print Orientation
Declaration
public PrintOrientation PrintOrientation { get; set; }
Property Value
Type |
---|
Windows.Graphics.Printing.PrintOrientation |
PrintPreviewStretch
Gets or sets PrintPreviewStretch
Declaration
public Stretch PrintPreviewStretch { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Media.Stretch |
Title
Gets or sets Title
Declaration
public string Title { get; set; }
Property Value
Type |
---|
System.String |
Methods
GetBitmapEncoder(InMemoryRandomAccessStream)
Initializes a new instance of the GetBitmapEncoder(InMemoryRandomAccessStream) method.
Declaration
protected virtual Task<BitmapEncoder> GetBitmapEncoder(InMemoryRandomAccessStream ms)
Parameters
Type | Name | Description |
---|---|---|
Windows.Storage.Streams.InMemoryRandomAccessStream | ms | Gets stream value |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Windows.Graphics.Imaging.BitmapEncoder> | Returns encoder value |
GetNewOptions(PrintTask)
Declaration
protected virtual void GetNewOptions(PrintTask task)
Parameters
Type | Name | Description |
---|---|---|
Windows.Graphics.Printing.PrintTask | task |
GetPrintDocument()
Initializes a new instance of the GetPrintDocument() method.
Declaration
protected virtual PrintDocument GetPrintDocument()
Returns
Type | Description |
---|---|
Windows.UI.Xaml.Printing.PrintDocument | Returns document value |
GetPrintDocumentSource()
Initializes a new instance of the GetPrintDocumentSource() method.
Declaration
protected virtual IPrintDocumentSource GetPrintDocumentSource()
Returns
Type | Description |
---|---|
Windows.Graphics.Printing.IPrintDocumentSource | Returns documentsource value |
GetPrintTask()
Initializes a new instance of the GetPrintTask() method.
Declaration
protected virtual PrintTask GetPrintTask()
Returns
Type | Description |
---|---|
Windows.Graphics.Printing.PrintTask | Returns print task value |
PrintTaskRequested(PrintManager, PrintTaskRequestedEventArgs)
This is the event handler for PrintManager.PrintTaskRequested.
Declaration
protected virtual void PrintTaskRequested(PrintManager sender, PrintTaskRequestedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Windows.Graphics.Printing.PrintManager | sender | PrintManager |
Windows.Graphics.Printing.PrintTaskRequestedEventArgs | args |
RegisterForPrinting()
This function registers the app for printing with Windows and sets up the necessary event handlers for the print process.
Declaration
public void RegisterForPrinting()
UnregisterForPrinting()
This function unregisters the app for printing with Windows.
Declaration
public void UnregisterForPrinting()
Events
PropertyChanged
Defines PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |