Creates a PrintDocument object that can be used to print or preview the current diagram.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public PrintDocument CreatePrintDocument () |
Visual Basic Copy Code |
---|
Public Function CreatePrintDocument () As PrintDocument |
A PrintDocument instance.
The DisposePrintDocument method must be called when done using the document.
The 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() |