A dialog for previwing and setting before printing.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadPrintPreviewDialog : RadForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadFormRadPrintPreviewDialog...
Implements:
Inherited Members
Constructors
Creates a preview dialog with no document assigned.
public RadPrintPreviewDialog()
Creates a preview dialog for the specified print document.
public RadPrintPreviewDialog(RadPrintDocument document)
The document to display in the preview.
Fields
Moves the preview to the following page.
protected CommandBarButton buttonNextPage
Moves the preview to the preceding page.
protected CommandBarButton buttonPrevPage
Opens the system print dialog for the current document.
protected CommandBarButton buttonPrint
Opens the associated object's print-settings dialog.
protected CommandBarButton buttonSettings
Increases the preview zoom.
protected CommandBarButton buttonZoomIn
Reduces the preview zoom.
protected CommandBarButton buttonZoomOut
Opens the watermark editor for the current document.
protected CommandBarButton commandBarButtonWatermark
Opens the page-layout picker for choosing preview rows and columns.
protected CommandBarDropDownButton dropDownButtonLayout
Provides predefined zoom levels and automatic zoom for the preview.
protected CommandBarDropDownList dropDownZoom
Displays the total number of pages in the document.
protected CommandBarLabel labelTotalPages
The zoom editor hosted in the dialog's View menu.
protected ZoomMenuItem menuItemZoom
Displays the document pages in the preview area.
protected RadPrintPreviewControl printPreviewControl
Displays and accepts a page number to navigate to in the preview.
protected CommandBarTextBox textBoxCurrentPage
Properties
Gets or sets the that should be previewed.
[Browsable(false)]
public RadPrintDocument Document { get; set; }
Gets the PrintDialog that is shown by this dialog.
[Browsable(false)]
public PrintDialog PrintDialog { get; }
Gets the RadCommandBar instance of the form.
[Browsable(false)]
public RadCommandBar ToolCommandBar { get; }
Gets the RadMenu instance of the form.
[Browsable(false)]
public RadMenu ToolMenu { get; }
Gets the WatermarkPreviewDialog that is shown by this dialog.
[Browsable(false)]
public WatermarkPreviewDialog WatermarkDialog { get; }
Methods
Creates the system print dialog used by the preview dialog.
protected virtual PrintDialog CreatePrintDialog()
A print dialog configured to support printing to a file, the current page, a selection, or specified pages.
Creates a watermark editor for the dialog's current document.
protected virtual WatermarkPreviewDialog CreateWatermarkDialog()
The watermark editor that is displayed by this dialog.
Clean up any resources being used.
protected override void Dispose(bool disposing)
true if managed resources should be disposed; otherwise, false.
Overrides:
Localizes the strings in the dialog with strings from the current PrintDialogsLocalizationProvider.
protected virtual void LocalizeStrings()
Applies Material-theme sizing adjustments to the zoom selector and command bar after the dialog loads.
Resets the document's print range to all pages when the dialog is shown.
Shows the print dialog and prints the pages currently represented by the preview when printing is accepted.
protected virtual void OnShowPrintDialog()
The document's current page and selection length are set from the preview's starting page and page layout. The print range is reset to all pages after the dialog closes.
Shows the associated object's print-settings dialog.
protected virtual void OnShowPrintSettingsDialog()
Accepting the settings resets the document's print range to all pages and refreshes the preview.
Shows the watermark editor for the current document.
protected virtual void OnShowWatermarkDialog()
The preview is refreshed when the watermark dialog is accepted.
Closes the preview dialog when Escape is pressed and delegates other keys to the base form.
Scrolls the preview with a specified offset.
Sets the zoom factor of the preview.
Unsubscribes the dialog from localization-provider change notifications.
protected virtual void UnwireEvents()