Provides properties that allow customization of various aspects of the extended print-preview window.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public sealed class PreviewOptions |
Visual Basic Copy Code |
---|
Public NotInheritable Class PreviewOptions |
Use the PreviewOptions member of the DiagramView class to access the sole instance of this class.
Settings that alter the appearance of a diagram rendered to the printer or the preview dialog are set via PrintOptions. The PreviewOptions properties apply only to the UI elements of the extended preview dialog, displayed by the PrintPreviewEx method.
If DisplayPrintDialog is enabled, MindFusion.Diagramming displays a printer setup dialog when a user clicks the Print button in the preview window. Enable that property to let users change some printer settings before they start the print job. For example they could select a different printer, change the printer color settings or select the range of pages to be printed.
The ButtonImages property allows changing the images displayed inside the preview window toolbar buttons. The icon displayed in the titlebar can be set in the TitleBarIcon property.
The remaining properties allow changing the text of tooltips and menu items, which lets your application be localized or just use better English than ours.
To display a customized print preview dialog, use code like this:
C# Copy Code |
---|
private void preview_Click(object sender, System.EventArgs e) |
Visual Basic Copy Code |
---|
Private Sub preview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles preview.Click |
System.Object
MindFusion.Diagramming.WinForms.PreviewOptions