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

Defines the drawing, measurement, invalidation, and hit-testing operations used by chart renderers.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

C#
public interface IChartRenderer

Properties

Gets the current drawing surface.

C#
object Surface { get; }

Methods

Draws the chart using the supplied rendering context.

C#
void Draw(object context)
Parameters:contextobject

The rendering context supplied by the chart host.

Gets the data point at the specified chart coordinates, if any.

C#
DataPoint HitTest(int x, int y)
Parameters:xint

The horizontal chart coordinate.

yint

The vertical chart coordinate.

Returns:

DataPoint

The hit data point, or null if no point is hit.

Notifies the renderer that the specified chart model needs to be redrawn.

C#
void Invalidate(object model)
Parameters:modelobject

The changed model.

Measures the space required by text after applying the specified rotation.

C#
RadSize MeasureRotatedLabels(string text, object context, double rotationAngle)
Parameters:textstring

The text to measure.

contextobject

The font context used for measurement.

rotationAngledouble

The rotation angle in degrees.

Returns:

RadSize

The dimensions required by the rotated text.

Measures text using the supplied font context.

C#
RadSize MeasureText(string text, object context)
Parameters:textstring

The text to measure.

contextobject

The font context used for measurement.

Returns:

RadSize

The measured text dimensions.