Creates a PrintDocument object that can be used to print or preview the current diagram.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
SyntaxC#
Copy Code
|
|---|
public PrintDocument CreatePrintDocument () |
Visual Basic
Copy Code
|
|---|
Public Function CreatePrintDocument () As PrintDocument |
A PrintDocument instance.
RemarksThe DisposePrintDocument method must be called when done using the document.
ExampleThe following example shows how to use this method to display the diagram in a PrintPreviewControl placed inside your own form.
C#
Copy Code
|
|---|
| previewControl.Document = diagramView.CreatePrintDocument(); |
Visual Basic
Copy Code
|
|---|
| previewControl.Document = diagramView.CreatePrintDocument() |
See Also