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

Some RadDiagram related extensions and utilities.

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public static class DiagramExtensions

Inheritance: objectDiagramExtensions

Methods

Creates the diagram image.

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

The diagram.

enclosingBoundsRect

The enclosing bounds.

returnImageSizeSize

The return image size.

backgroundBrushBrush

The background brush.

marginThickness

The margin.

dpidouble

The quality of the image.

Returns:

Bitmap

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

C#
public static Point GetTransformedPoint(this RadDiagramElement diagram, Point point)
Parameters:diagramRadDiagramElement

The diagram.

pointPoint

The point.

Returns:

Point