Search
DiagramBase.DocumentPaginator Property
See Also
 





Gets or sets the DocumentPaginator used to retrieve pages when printing the diagram.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public abstract DocumentPaginator DocumentPaginator { get; }

Visual Basic  Copy Code

Public MustOverride ReadOnly Property DocumentPaginator As DocumentPaginator

 Property Value

An instance of the System.Windows.Documents.DocumentPaginator class.

 Remarks

You can use this property as an argument to the PrintDocument.PrintDocument method.

 Example

C#  Copy Code

PrintDialog pd = new PrintDialog();

if (pd.ShowDialog())
    pd.PrintDocument(diagram.DocumentPaginator, "my diagram");

Visual Basic  Copy Code

Dim pd As New PrintDialog()

If pd.ShowDialog() Then
    pd.PrintDocument(diagram.DocumentPaginator, "my diagram")
End If

 See Also