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

Defines the drawing, measurement, invalidation, and hit-testing operations used by a spark area.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface ISparkRenderer

Properties

Gets the current drawing surface supplied to Draw(object).

C#
object Surface { get; }

Methods

Draws the area using the supplied drawing context.

C#
void Draw(object context)
Parameters:contextobject

The drawing context, typically a Graphics instance.

Finds the data point at the specified drawing-surface coordinates.

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

The horizontal coordinate.

yint

The vertical coordinate.

Returns:

SparkDataPoint

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

Notifies the renderer that the specified model should be refreshed.

C#
void Invalidate(object model)
Parameters:modelobject

The model to invalidate.

Measures text using a renderer-specific measurement context.

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

The text to measure.

contextobject

The measurement context; SparkRenderer expects a Font.

Returns:

RadSize

The measured width and height.