C# Class Patagames.Pdf.Net.Controls.Wpf.PdfPrint

Provides methods to print the entire document asynchronously.
Show file Open project: Patagames/Pdf.Wpf

Private Properties

Property Type Description
Paginator_PagePrinted void
ThreadProc void

Public Methods

Method Description
End ( ) : void

Requests cancellation of a printing.

PdfPrint ( PdfDocument document ) : System

Initializes a new instance of the PdfPrint class.

ShowDialog ( Window window ) : void

Shows PrintDialog and starts asynchronous execution of a printing.

This method does not breaks the previous operation before execute a new printing.

StartPrintAsync ( ) : void

Starts asynchronous execution of a printing.

This method does not breaks the previous operation before execute a new printing.

Protected Methods

Method Description
OnCancelationPending ( ) : void

Raises the CancelationPending event.

OnPagePrinted ( PagePrintedEventArgs e ) : void

Raises the PagePrinted event.

OnPrintCompleted ( ) : void

Raises the PrintCompleted event.

OnPrintStarted ( ) : void

Raises the PrintStarted event.

Private Methods

Method Description
Paginator_PagePrinted ( object sender, PagePrintedEventArgs e ) : void
ThreadProc ( object param ) : void

Method Details

End() public method

Requests cancellation of a printing.
public End ( ) : void
return void

OnCancelationPending() protected method

Raises the CancelationPending event.
protected OnCancelationPending ( ) : void
return void

OnPagePrinted() protected method

Raises the PagePrinted event.
protected OnPagePrinted ( PagePrintedEventArgs e ) : void
e PagePrintedEventArgs An that contains the event data.
return void

OnPrintCompleted() protected method

Raises the PrintCompleted event.
protected OnPrintCompleted ( ) : void
return void

OnPrintStarted() protected method

Raises the PrintStarted event.
protected OnPrintStarted ( ) : void
return void

PdfPrint() public method

Initializes a new instance of the PdfPrint class.
public PdfPrint ( PdfDocument document ) : System
document PdfDocument The instance of class
return System

ShowDialog() public method

Shows PrintDialog and starts asynchronous execution of a printing.
This method does not breaks the previous operation before execute a new printing.
public ShowDialog ( Window window ) : void
window System.Windows.Window Parent window for PrintDialog. If Null then PrintDialog not shown.
return void

StartPrintAsync() public method

Starts asynchronous execution of a printing.
This method does not breaks the previous operation before execute a new printing.
public StartPrintAsync ( ) : void
return void