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

Definition

Constructors

Initializes a new instance of the SparkCartesianRenderer class.

C#
public SparkCartesianRenderer(SparkCartesianArea area)
Parameters:areaSparkCartesianArea

The area.

Properties

Gets the area.

C#
public SparkCartesianArea Area { get; }
Property Value:

The area.

Gets the offset X.

C#
public virtual float OffsetX { get; }
Property Value:

The offset X.

Gets the offset Y.

C#
public virtual float OffsetY { get; }
Property Value:

The offset Y.

Methods

Returns the offset value considering whether it is contained within the chart area.

C#
protected virtual double ContainWithinChartArea(SparkCartesianAxis axis, double suggestedOffset, bool isVertical)
Parameters:axisSparkCartesianAxis

The axis.

suggestedOffsetdouble

The suggested offset.

isVerticalbool

The is vertical.

Returns:

double

Draws the specified context.

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

The context.

Overrides: SparkRenderer.Draw(object)

Gets the axis offset.

C#
public virtual SizeF GetAxisOffset(SparkCartesianAxis axis)
Parameters:axisSparkCartesianAxis

The axis.

Returns:

SizeF

Returns the DataPoint that hits the x,y coordinates.

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

The x.

yint

The y.

Returns:

SparkDataPoint

Overrides: SparkRenderer.HitTest(int, int)

Initializes the renderer.

C#
protected override void Initialize()

Overrides: SparkRenderer.Initialize()

Initializes the annotations.

C#
protected virtual void InitializeAnnotations(AnnotationDrawMode drawMode)
Parameters:drawModeAnnotationDrawMode

The draw mode.

Initializes the axes.

C#
protected virtual void InitializeAxes(AxisDrawMode drawMode)
Parameters:drawModeAxisDrawMode

Initializes the series.

C#
protected virtual void InitializeSeries()