New to Telerik UI for WinForms? Start a free 30-day trial

Renders a Cartesian free-figure annotation, including its path, point markers, and label.

Definition

Constructors

Initializes a new instance of the CartesianFreeFigureAnnotationDrawPart class.

C#
public CartesianFreeFigureAnnotationDrawPart(CartesianFreeFigureAnnotation element, CartesianRenderer renderer)
Parameters:elementCartesianFreeFigureAnnotation

The element.

rendererCartesianRenderer

The renderer.

Methods

Draws the free figure annotation.

C#
public override void Draw()

Overrides: DrawPart<CartesianFreeFigureAnnotation>.Draw()

Creates the annotation path from point positions, using the configured spline or line rendering.

C#
protected virtual GraphicsPath GetLinePaths(PointF[] points)
Parameters:pointsPointF[]

The point positions in rendering coordinates.

Returns:

GraphicsPath

The path for the points, or null when the array is empty.

Gets the arranged point positions adjusted by the current viewport offset.

C#
protected virtual PointF[] GetPointsPositionsArray()
Returns:

PointF[]

The point positions used to build the annotation path.