Class DiagramPrintManager
Informs windows that an application wishes to participate in PrintManager. The PrintManager class is also used for programmatically initiating printing.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class DiagramPrintManager : PrintManager, INotifyPropertyChanged, IDisposable
Constructors
DiagramPrintManager(PrintingService)
Initialize a new instance of the DiagramPrintManager.
Declaration
public DiagramPrintManager(PrintingService printingService)
Parameters
| Type | Name | Description |
|---|---|---|
| PrintingService | printingService | Instance of PrintingService |
Methods
ComputePageCount()
Method to count the pages.
Declaration
protected override void ComputePageCount()
Overrides
CreatePage(Int32)
Method to create printing pages based on page index values.
Declaration
protected override PrintPageControl CreatePage(int pageIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | pageIndex | Gets page index value. |
Returns
| Type |
|---|
| PrintPageControl |
Overrides
CreatePage(Int32, PrintPageControl)
Method to create printing diagram pages based on page index values and printing page control of diagram.
Declaration
protected override PrintPageControl CreatePage(int pageIndex, PrintPageControl pageControl)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | pageIndex | |
| PrintPageControl | pageControl |
Returns
| Type | Description |
|---|---|
| PrintPageControl | Returns printing page control. |
Overrides
GetScaleOptions(String)
To get scale values of diagram pages for printing.
Declaration
protected override List<PrintScaleInfo> GetScaleOptions(string themeName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | themeName |
Returns
| Type |
|---|
| System.Collections.Generic.List<PrintScaleInfo> |
Overrides
InitializeProperties()
Initializes all properties values of DiagramPrintManager class.
Declaration
protected override void InitializeProperties()
Overrides
OnPageSizeChanged(Double, Double)
Method to change the page size of printing pages of diagram control.
Declaration
protected override void OnPageSizeChanged(double width, double height)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | width | Gets page width. |
| System.Double | height | Gets page height. |
Overrides
OnPrintMarginChanged(Thickness)
Method to change the margin values of printing pages of diagram control.
Declaration
protected override void OnPrintMarginChanged(Thickness value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Thickness | value | Gets margin value. |
Overrides
OnPrintOrientationChanged(PrintOrientation)
Method to change the page orientations of printing pages of diagram control.
Declaration
protected override void OnPrintOrientationChanged(PrintOrientation value)
Parameters
| Type | Name | Description |
|---|---|---|
| PrintOrientation | value | Gets page orientation value. |
Overrides
OnPrintScaleOptionChanged(Int32)
Method to change the scaling or zooming level of printing pages of diagram control.
Declaration
protected override void OnPrintScaleOptionChanged(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Gets page index value. |
Overrides
OnPropertyChanged(String)
Method to notify when property values has been changed.
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | propertyName | Property name. |
Overrides
Print(PrintDialog, Boolean)
Method to initiate printing the diagram pages.
Declaration
public override void Print(PrintDialog printDialog, bool showPrintDialog)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Controls.PrintDialog | printDialog | Gets print preview dialouge box. |
| System.Boolean | showPrintDialog | Gets boolean to show print dialouge. |
Overrides
PrintDocument(PrintDialog, Nullable<Boolean>)
Prints the content of page control according to the print ticket and print queue configures in the print dialog.
Declaration
protected override void PrintDocument(PrintDialog printDialog, bool? canPrint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Controls.PrintDialog | printDialog | Configures the PrintTicket and PrintQueue according to the user input for printing. |
| System.Nullable<System.Boolean> | canPrint | Decides whether the print can be performed or not. |