ChartRenderer
Provides the base implementation for chart rendering functionality, handling drawing operations and text measurement for chart elements.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class ChartRenderer : IChartRenderer
Inheritance: objectChartRenderer
Derived Classes:
Implements:
Constructors
Initializes a new instance of the ChartRenderer class with the specified chart area.
public ChartRenderer(ChartArea area)
The chart area that this renderer will be associated with.
Properties
Gets the Graphics object from the current rendering surface.
public Graphics Graphics { get; }
Methods
Draws the chart using the specified rendering context.
public virtual void Draw(object context)
The graphics context used for rendering operations.
Implements:
Performs hit testing to find the data point at the specified coordinates.
Initializes the renderer by setting up smart labels controller and calculating label positions if available.
protected virtual void Initialize()
Invalidates the specified model to trigger a redraw operation.
public virtual void Invalidate(object model)
The model object to invalidate.
Implements:
Measures the size of rotated text labels considering the rotation angle.
public virtual RadSize MeasureRotatedLabels(string text, object context, double rotationAngle)
The text to measure.
contextobjectThe font context used for measurement.
rotationAngledoubleThe rotation angle in degrees.
Returns:A RadSize representing the measured dimensions of the rotated text.
Implements:
Measures the size of the specified text using the provided font context.
Converts a RadRect to a RectangleF.
public static RectangleF ToRectangleF(RadRect rect)
The RadRect to convert.
Returns:A RectangleF with equivalent dimensions.