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

Draws point markers using the series' marker settings and provides marker hit testing for point series.

Definition

Constructors

Initializes a new instance of the SparkPointSeriesDrawPart class.

C#
public SparkPointSeriesDrawPart(SparkSeries series, ISparkRenderer renderer)
Parameters:seriesSparkSeries

The series.

rendererISparkRenderer

The renderer.

Methods

Determines whether a point's marker can be drawn; the base implementation allows every point.

C#
protected virtual bool CanDrawPointMarkers(SparkDataPoint dataPoint)
Parameters:dataPointSparkDataPoint

The point whose marker is being considered.

Returns:

bool

true to allow marker drawing.

Draws the area.

C#
protected virtual void DrawArea()

Draws the line.

C#
protected virtual void DrawLine()

Draws the point using the series marker style, applicable point-indicator styling, and empty-point behavior.

C#
protected virtual void DrawPointMarker(SparkDataPoint dataPoint, PointF pointLocation)
Parameters:dataPointSparkDataPoint

The point to draw.

pointLocationPointF

The arranged location of the point marker.

Draws the points.

C#
protected virtual void DrawPoints()

Gets the line path.

C#
protected virtual GraphicsPath GetLinePath()
Returns:

GraphicsPath

Gets the point location.

C#
protected virtual PointF GetPointLocation(RadRect pointSlot, SizeF pointSize)
Parameters:pointSlotRadRect

The point slot.

pointSizeSizeF

Size of the point.

Returns:

PointF

Gets the points positions array.

C#
protected virtual PointF[] GetPointsPositionsArray()
Returns:

PointF[]

Returns the SparkDataPoint that hits the location.

C#
public override SparkDataPoint HitTest(Point location)
Parameters:locationPoint

The location.

Returns:

SparkDataPoint

Overrides: SparkDrawPart<SparkSeries>.HitTest(Point)