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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class SparkRenderer : ISparkRenderer

Inheritance: objectSparkRenderer

Derived Classes: SparkCartesianRenderer

Implements: ISparkRenderer

Constructors

Initializes a new instance of the SparkRenderer class.

C#
public SparkRenderer(SparkArea area)
Parameters:areaSparkArea

The area.

Properties

Gets the graphics object.

C#
public Graphics Graphics { get; }
Property Value:

The graphics.

Gets or sets the surface.

C#
public object Surface { get; }
Property Value:

The surface.

Implements: ISparkRenderer.Surface

Methods

Draws the specified context.

C#
public virtual void Draw(object context)
Parameters:contextobject

The context.

Implements: ISparkRenderer.Draw(object)

Gets the distance between points.

C#
public float GetDistanceBetweenPoints(PointF start, PointF end)
Parameters:startPointF

The start.

endPointF

The end.

Returns:

float

Returns the DataPoint that hits the passed x,y coordinates.

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

The x.

yint

The y.

Returns:

SparkDataPoint

Implements: ISparkRenderer.HitTest(int, int)

Initializes the renderer.

C#
protected virtual void Initialize()

Invalidates the specified model.

C#
public virtual void Invalidate(object model)
Parameters:modelobject

The model.

Implements: ISparkRenderer.Invalidate(object)

Measures the text.

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

The text.

contextobject

The context.

Returns:

RadSize

Implements: ISparkRenderer.MeasureText(string, object)

Returns Point for the gives RadPoint.

C#
public static Point ToPoint(RadPoint point)
Parameters:pointRadPoint

The point.

Returns:

Point

Returns PointF for the gives RadPoint.

C#
public static PointF ToPointF(RadPoint point)
Parameters:pointRadPoint

The point.

Returns:

PointF

C#
public static Rectangle ToRectangle(RadRect rect)
Parameters:rectRadRectReturns:

Rectangle

C#
public static RectangleF ToRectangleF(RadRect rect)
Parameters:rectRadRectReturns:

RectangleF

Returns Size for the gives RadSize.

C#
public static Size ToSize(RadSize size)
Parameters:sizeRadSize

The size.

Returns:

Size

Returns SizeF for the gives RadSize.

C#
public static SizeF ToSizeF(RadSize size)
Parameters:sizeRadSize

The size.

Returns:

SizeF