ClassRadDiagramPrintPreview
Visual control used to display how the diagram will be paginated before printing.
Definition
Namespace:Telerik.Windows.Controls.Diagrams.Extensions
Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll
Syntax:
[TelerikToolboxCategory("Diagram")]
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable")]
public class RadDiagramPrintPreview : Control
Inheritance: objectRadDiagramPrintPreview
Constructors
RadDiagramPrintPreview()
Initializes a new instance of the RadDiagramPrintPreview class.
Declaration
public RadDiagramPrintPreview()
Fields
DiagramProperty
Identifies the Diagram dependency property.
Declaration
public static readonly DependencyProperty DiagramProperty
Field Value
DependencyProperty
DpiProperty
Identifies the Dpi dependency property.
Declaration
public static readonly DependencyProperty DpiProperty
Field Value
DependencyProperty
ItemStyleProperty
Identifies the ItemStyle dependency property.
Declaration
public static readonly DependencyProperty ItemStyleProperty
Field Value
DependencyProperty
PreviewPrintEvent
Identifies the PreviewPrint routed event.
Declaration
public static readonly RoutedEvent PreviewPrintEvent
Field Value
RoutedEvent
PrintContentMarginProperty
Identifies the PrintContentMargin dependency property.
Declaration
public static readonly DependencyProperty PrintContentMarginProperty
Field Value
DependencyProperty
PrintScaleFactorProperty
Registers the PrintScaleFactor dependency property.
Declaration
public static readonly DependencyProperty PrintScaleFactorProperty
Field Value
DependencyProperty
PrintedEvent
Identifies the Printed routed event.
Declaration
public static readonly RoutedEvent PrintedEvent
Field Value
RoutedEvent
ScaleDownFactorProperty
Identifies the ScaleDownFactor dependency property.
Declaration
public static readonly DependencyProperty ScaleDownFactorProperty
Field Value
DependencyProperty
Properties
Diagram
Gets or sets the diagram.
Declaration
public RadDiagram Diagram { get; set; }
Property Value
The diagram.
Dpi
Gets or sets the resolution used during print.
HasPrintErrors
Checked whether there are print errors.
ItemStyle
Gets or sets the print preview item style.
Declaration
public Style ItemStyle { get; set; }
Property Value
Style
PagesInfo
Gets the pages info.
Declaration
public RadDiagramPagesInfo PagesInfo { get; }
Property Value
PrintContentMargin
Gets or sets the margin for every page.
Declaration
public Thickness PrintContentMargin { get; set; }
Property Value
Thickness
PrintScaleFactor
Gets or sets the scale factor.
Declaration
public double PrintScaleFactor { get; set; }
Property Value
The scale factor.
ScaleDownFactor
Gets or sets the scale down factor.
Declaration
public double ScaleDownFactor { get; set; }
Property Value
The scale down factor.
Methods
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
Print(string)
Prints the associated diagram.
Declaration
public void Print(string title)
Parameters
title
Title used in the print documents queue.
Events
PreviewPrint
Occurs before diagram printing starts.
Declaration
public event EventHandler<RoutedEventArgs> PreviewPrint
Event Value
EventHandler<RoutedEventArgs>
Printed
Occurs after diagram printing is completed.
Declaration
public event EventHandler<RoutedEventArgs> Printed
Event Value
EventHandler<RoutedEventArgs>