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

Provides methods to print the entire document asynchronously.
Afficher le fichier Open project: Patagames/Pdf.Wpf

Private Properties

Свойство Type Description
Paginator_PagePrinted void
ThreadProc void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
Paginator_PagePrinted ( object sender, PagePrintedEventArgs e ) : void
ThreadProc ( object param ) : void

Method Details

End() public méthode

Requests cancellation of a printing.
public End ( ) : void
Résultat void

OnCancelationPending() protected méthode

Raises the CancelationPending event.
protected OnCancelationPending ( ) : void
Résultat void

OnPagePrinted() protected méthode

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

OnPrintCompleted() protected méthode

Raises the PrintCompleted event.
protected OnPrintCompleted ( ) : void
Résultat void

OnPrintStarted() protected méthode

Raises the PrintStarted event.
protected OnPrintStarted ( ) : void
Résultat void

PdfPrint() public méthode

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

ShowDialog() public méthode

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.
Résultat void

StartPrintAsync() public méthode

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