C# 클래스 Patagames.Pdf.Net.Controls.Wpf.PdfPrintDocument

Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.
상속: System.Drawing.Printing.PrintDocument
파일 보기 프로젝트 열기: Patagames/Pdf.Wpf

공개 메소드들

메소드 설명
PdfPrintDocument ( PdfDocument Document, int mode ) : Patagames.Pdf.Enums

Initializes a new instance of the PdfPrintDocument class.

보호된 메소드들

메소드 설명
OnBeforeRenderPage ( PdfPage page, double width, double height, PageRotate rotation ) : void

Raises the BeforeRenderPage event.

OnBeginPrint ( System.Drawing.Printing.PrintEventArgs e ) : void

Raises the System.Drawing.Printing.PrintDocument.BeginPrint event. It is called after the System.Drawing.Printing.PrintDocument.Print method is called and before the first page of the document prints.

OnEndPrint ( System.Drawing.Printing.PrintEventArgs e ) : void

Raises the System.Drawing.Printing.PrintDocument.EndPrint event. It is called when the last page of the document has printed.

OnPrintPage ( System.Drawing.Printing.PrintPageEventArgs e ) : void

Raises the System.Drawing.Printing.PrintDocument.PrintPage event. It is called before a page prints.

비공개 메소드들

메소드 설명
CalcRotation ( IntPtr currentPage, bool isLandscape, double &width, double &height ) : PageRotate
CalcSize ( IntPtr currentPage, double dpiX, double dpiY, RectangleF printableArea, bool isLandscape, double &width, double &height ) : void
GetRenderSize ( SizeF pageSize, SizeF fitSize ) : SizeF
InitDocument ( ) : IntPtr

메소드 상세

OnBeforeRenderPage() 보호된 메소드

Raises the BeforeRenderPage event.
protected OnBeforeRenderPage ( PdfPage page, double width, double height, PageRotate rotation ) : void
page PdfPage The pagewhat will be printed.
width double The page's width calculated to match the sheet size.
height double The page's height calculated to match the sheet size.
rotation PageRotate The page rotation.
리턴 void

OnBeginPrint() 보호된 메소드

Raises the System.Drawing.Printing.PrintDocument.BeginPrint event. It is called after the System.Drawing.Printing.PrintDocument.Print method is called and before the first page of the document prints.
protected OnBeginPrint ( System.Drawing.Printing.PrintEventArgs e ) : void
e System.Drawing.Printing.PrintEventArgs A System.Drawing.Printing.PrintEventArgs that contains the event data.
리턴 void

OnEndPrint() 보호된 메소드

Raises the System.Drawing.Printing.PrintDocument.EndPrint event. It is called when the last page of the document has printed.
protected OnEndPrint ( System.Drawing.Printing.PrintEventArgs e ) : void
e System.Drawing.Printing.PrintEventArgs A System.Drawing.Printing.PrintEventArgs that contains the event data.
리턴 void

OnPrintPage() 보호된 메소드

Raises the System.Drawing.Printing.PrintDocument.PrintPage event. It is called before a page prints.
protected OnPrintPage ( System.Drawing.Printing.PrintPageEventArgs e ) : void
e System.Drawing.Printing.PrintPageEventArgs A System.Drawing.Printing.PrintPageEventArgs that contains the event data.
리턴 void

PdfPrintDocument() 공개 메소드

Initializes a new instance of the PdfPrintDocument class.
public PdfPrintDocument ( PdfDocument Document, int mode ) : Patagames.Pdf.Enums
Document PdfDocument The document to print
mode int Reserved. Must be zero.
리턴 Patagames.Pdf.Enums