New to Telerik UI for WPFStart a free 30-day trial

Some RadDiagram related extensions and utilities.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public static class DiagramExtensions

Inheritance: objectDiagramExtensions

Methods

Slices the diagram into collection of pages.

C#
public static RadDiagramPagesInfo CalculatePages(this RadDiagram diagram, Size pageSize, RadDiagramPrintSettings settings)
Parameters:diagramRadDiagram

The diagram.

pageSizeSize

Size of the page.

settingsRadDiagramPrintSettings

Print settings including rows, columns, scale factor, print pages arrangement.

Returns:

RadDiagramPagesInfo

Print preview information.

Slices the diagram into collection of pages.

C#
public static RadDiagramPagesInfo CalculatePages(this RadDiagram diagram, Size pageSize, Thickness pageMargin)
Parameters:diagramRadDiagram

The diagram.

pageSizeSize

Size of the page.

pageMarginThickness

Margin used to calculate actual content size.

Returns:

RadDiagramPagesInfo

Print preview information.

Creates the diagram image.

C#
public static WriteableBitmap CreateDiagramImage(this RadDiagram diagram, Rect imageEnclosingBounds, Size returnImageSize = null, Brush backgroundBrush = null, Thickness margin = null, double dpi = 96)
Parameters:diagramRadDiagram

The diagram.

imageEnclosingBoundsRect

The enclosing bounds.

returnImageSizeSize

The return image size.

backgroundBrushBrush

The background brush.

marginThickness

The margin.

dpidouble

The quality of the image.

Returns:

WriteableBitmap

Applies the panning and zooming for the point and returns the transformed point.

C#
public static Point GetTransformedPoint(this RadDiagram diagram, Point point)
Parameters:diagramRadDiagram

The diagram.

pointPoint

The point.

Returns:

Point