Class EditPrintManager
This class is used to Print and Print Preview functionalities.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Edit
Assembly: Syncfusion.Edit.Wpf.dll
Syntax
public class EditPrintManager : PrintManager, INotifyPropertyChanged, IDisposable
Constructors
EditPrintManager(EditControl)
Invoked when initialize the EditPrintManager
Declaration
public EditPrintManager(EditControl edit)
Parameters
Type | Name | Description |
---|---|---|
EditControl | edit | EditControl |
Methods
ComputePageCount()
Initializes the print process such as print properties,settings.
Declaration
protected override void ComputePageCount()
Overrides
CreatePage(Int32, PrintPageControl)
Creates the page corresponding to the specified page index and
Declaration
protected override PrintPageControl CreatePage(int pageIndex, PrintPageControl pageControl)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | The corresponding page index to create page. |
PrintPageControl | pageControl |
Returns
Type |
---|
PrintPageControl |
Overrides
GetPrintDocument()
Gets the print document of page control.
Declaration
public override FixedDocument GetPrintDocument()
Returns
Type | Description |
---|---|
System.Windows.Documents.FixedDocument | Returns the System.Windows.Documents.FixedDocument that contains the print document of page control. |
Overrides
GetPrintDocument(Int32, Int32)
Gets the print document of page control based on the specified start and end index of page.
Declaration
public override FixedDocument GetPrintDocument(int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | The start index of the page to get print document. |
System.Int32 | end | The end index of the page to get print document. |
Returns
Type | Description |
---|---|
System.Windows.Documents.FixedDocument | Returns the System.Windows.Documents.FixedDocument for the specified start and end index of the page contains the print document of page control. |
Overrides
InitializeProperties()
Initializes properties and settings for printing process.
Declaration
protected override void InitializeProperties()
Overrides
OnPageSizeChanged(Double, Double)
Update the print manager based upon the paper option changed from the print option control.
Declaration
protected override void OnPageSizeChanged(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | width of the page. |
System.Double | height | height of the page. |
Overrides
OnPrintMarginChanged(Thickness)
Update the print manager based upon the margin option changed from the print option control.
Declaration
protected override void OnPrintMarginChanged(Thickness value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Thickness | value | Margin thickness of the page. |
Overrides
OnPrintOrientationChanged(PrintOrientation)
Update the print manager based upon the paper option changed from the print option control.
Declaration
protected override void OnPrintOrientationChanged(PrintOrientation value)
Parameters
Type | Name | Description |
---|---|---|
PrintOrientation | value | Print orientation of the page. |
Overrides
OnPrintScaleOptionChanged(Int32)
Update the print manager based upon the page scale option changed from the print option control.
Declaration
protected override void OnPrintScaleOptionChanged(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |