Class DiagramPrintManager
Informs windows that an application wishes to participate in PrintManager. The PrintManager class is also used for programmatically initiating printing.
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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()
Declaration
protected override void ComputePageCount()
Overrides
CreatePage(Int32)
Declaration
protected override PrintPageControl CreatePage(int pageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex |
Returns
Type | Description |
---|---|
PrintPageControl |
Overrides
CreatePage(Int32, PrintPageControl)
Declaration
protected override PrintPageControl CreatePage(int pageIndex, PrintPageControl pageControl)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | |
PrintPageControl | pageControl |
Returns
Type | Description |
---|---|
PrintPageControl |
Overrides
GetScaleOptions()
Declaration
protected override List<PrintScaleInfo> GetScaleOptions()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<PrintScaleInfo> |
Overrides
InitializeProperties()
Declaration
protected override void InitializeProperties()
Overrides
OnPageSizeChanged(Double, Double)
Declaration
protected override void OnPageSizeChanged(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | |
System.Double | height |
Overrides
OnPrintMarginChanged(Thickness)
Declaration
protected override void OnPrintMarginChanged(Thickness value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Thickness | value |
Overrides
OnPrintOrientationChanged(PrintOrientation)
Declaration
protected override void OnPrintOrientationChanged(PrintOrientation value)
Parameters
Type | Name | Description |
---|---|---|
PrintOrientation | value |
Overrides
OnPrintScaleOptionChanged(Int32)
Declaration
protected override void OnPrintScaleOptionChanged(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Overrides
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
Overrides
Print(PrintDialog, Boolean)
Declaration
public override void Print(PrintDialog printDialog, bool showPrintDialog)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.PrintDialog | printDialog | |
System.Boolean | showPrintDialog |
Overrides
Print(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 Print(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. |
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable