Class
RadDiagramPrintPreview

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:

cs-api-definition
[TelerikToolboxCategory("Diagram")]
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable")]
public class RadDiagramPrintPreview : Control

Inheritance: objectRadDiagramPrintPreview

Constructors

RadDiagramPrintPreview()

Initializes a new instance of the RadDiagramPrintPreview class.

Declaration

cs-api-definition
public RadDiagramPrintPreview()

Fields

DiagramProperty

Identifies the Diagram dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DiagramProperty

Field Value

DependencyProperty

DpiProperty

Identifies the Dpi dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DpiProperty

Field Value

DependencyProperty

ItemStyleProperty

Identifies the ItemStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemStyleProperty

Field Value

DependencyProperty

PreviewPrintEvent

Identifies the PreviewPrint routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewPrintEvent

Field Value

RoutedEvent

PrintContentMarginProperty

Identifies the PrintContentMargin dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PrintContentMarginProperty

Field Value

DependencyProperty

PrintScaleFactorProperty

Registers the PrintScaleFactor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PrintScaleFactorProperty

Field Value

DependencyProperty

PrintedEvent

Identifies the Printed routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PrintedEvent

Field Value

RoutedEvent

ScaleDownFactorProperty

Identifies the ScaleDownFactor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ScaleDownFactorProperty

Field Value

DependencyProperty

Properties

Diagram

Gets or sets the diagram.

Declaration

cs-api-definition
public RadDiagram Diagram { get; set; }

Property Value

RadDiagram

The diagram.

Dpi

Gets or sets the resolution used during print.

Declaration

cs-api-definition
public double Dpi { get; set; }

Property Value

double

HasPrintErrors

Checked whether there are print errors.

Declaration

cs-api-definition
public bool HasPrintErrors { get; }

Property Value

bool

ItemStyle

Gets or sets the print preview item style.

Declaration

cs-api-definition
public Style ItemStyle { get; set; }

Property Value

Style

PagesInfo

Gets the pages info.

Declaration

cs-api-definition
public RadDiagramPagesInfo PagesInfo { get; }

Property Value

RadDiagramPagesInfo

PrintContentMargin

Gets or sets the margin for every page.

Declaration

cs-api-definition
public Thickness PrintContentMargin { get; set; }

Property Value

Thickness

PrintScaleFactor

Gets or sets the scale factor.

Declaration

cs-api-definition
public double PrintScaleFactor { get; set; }

Property Value

double

The scale factor.

ScaleDownFactor

Gets or sets the scale down factor.

Declaration

cs-api-definition
public double ScaleDownFactor { get; set; }

Property Value

double

The scale down factor.

Methods

OnApplyTemplate()

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

Print(string)

Prints the associated diagram.

Declaration

cs-api-definition
public void Print(string title)

Parameters

title

string

Title used in the print documents queue.

Events

PreviewPrint

Occurs before diagram printing starts.

Declaration

cs-api-definition
public event EventHandler<RoutedEventArgs> PreviewPrint

Event Value

EventHandler<RoutedEventArgs>

Printed

Occurs after diagram printing is completed.

Declaration

cs-api-definition
public event EventHandler<RoutedEventArgs> Printed

Event Value

EventHandler<RoutedEventArgs>