C# 클래스 XSDDiagram.Rendering.DiagramPrinter

This manages or controls the output of a displayed diagram to the printer.

The System.Drawing.Printing.PrintDocument, required to print in a typical the Windows Forms applications, is automatically created and maintained by the instance of this class.

상속: IDisposable
파일 보기 프로젝트 열기: dgis/xsddiagram 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Dispose void
OnBeginPrint void
OnEndPrint void
OnPrintPage void

공개 메소드들

메소드 설명
DiagramPrinter ( ) : System

Initializes a new instance of the DiagramPrinter class with the specified diagram engine.

Dispose ( ) : void

This cleans up any resources being used.

PageSetup ( ) : void

This creates and displays the page setup dialog, PageSetupDialog, which enables users to change page-related print settings, including margins and paper orientation.

The dialog is displayed in the modal state.

Print ( bool showDialog, bool isRunningOnMono ) : void

This prints the currently displayed diagram, with an option to display the print dialog, PrintDialog.

PrintPreview ( ) : void

This creates and displays the print-preview dialog to both preview and print the diagram.

The dialog is displayed in the modal state.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

This cleans up any resources being used.

OnBeginPrint ( object sender, System.Drawing.Printing.PrintEventArgs e ) : void

OnEndPrint ( object sender, System.Drawing.Printing.PrintEventArgs e ) : void

OnPrintPage ( object sender, System.Drawing.Printing.PrintPageEventArgs e ) : void

메소드 상세

DiagramPrinter() 공개 메소드

Initializes a new instance of the DiagramPrinter class with the specified diagram engine.
public DiagramPrinter ( ) : System
리턴 System

Dispose() 공개 메소드

This cleans up any resources being used.
public Dispose ( ) : void
리턴 void

PageSetup() 공개 메소드

This creates and displays the page setup dialog, PageSetupDialog, which enables users to change page-related print settings, including margins and paper orientation.
The dialog is displayed in the modal state.
public PageSetup ( ) : void
리턴 void

Print() 공개 메소드

This prints the currently displayed diagram, with an option to display the print dialog, PrintDialog.
public Print ( bool showDialog, bool isRunningOnMono ) : void
showDialog bool /// This indicates whether to display the /// dialog or not. If , the print dialog is /// display to the user to prompt the print operation, and the user /// could cancel the print operation. ///
isRunningOnMono bool
리턴 void

PrintPreview() 공개 메소드

This creates and displays the print-preview dialog to both preview and print the diagram.
The dialog is displayed in the modal state.
public PrintPreview ( ) : void
리턴 void