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

Draws a sparkline line series as connected point segments with optional point markers.

Definition

Constructors

Initializes a new instance of the SparkLineSeriesDrawPart class.

C#
public SparkLineSeriesDrawPart(SparkLineSeries series, ISparkRenderer renderer)
Parameters:seriesSparkLineSeries

The series.

rendererISparkRenderer

The renderer.

Methods

Draws markers when the series enables them or the point has an enabled first, last, high, low, or negative indicator.

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

The point whose marker is being considered.

Returns:

bool

true when a marker or indicator should be drawn.

Overrides: SparkPointSeriesDrawPart.CanDrawPointMarkers(SparkDataPoint)

Draws the line.

C#
protected override void DrawLine()

Overrides: SparkCartesianSeriesDrawPart.DrawLine()

Draws the series parts.

C#
public override void DrawSeriesParts()

Overrides: SparkSeriesDrawPart.DrawSeriesParts()

Expands the clip by the view margins while painting a point marker; line painting uses the base clip.

C#
protected override RectangleF GetAdjustedClipRect(Graphics g)
Parameters:gGraphics

The graphics surface whose clip bounds are adjusted.

Returns:

RectangleF

The clip rectangle used for the current paint context.

Overrides: SparkDrawPart<SparkSeries>.GetAdjustedClipRect(Graphics)

Gets the line path.

C#
protected override GraphicsPath GetLinePath()
Returns:

GraphicsPath

Overrides: SparkPointSeriesDrawPart.GetLinePath()

Gets the line paths.

C#
protected virtual GraphicsPath GetLinePaths(PointF[] points)
Parameters:pointsPointF[]

The points.

Returns:

GraphicsPath

Gets the points positions array.

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

PointF[]

Overrides: SparkPointSeriesDrawPart.GetPointsPositionsArray()

Gets the points positions arrays.

C#
protected virtual List<PointF[]> GetPointsPositionsArrays()
Returns:

List<PointF[]>