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

Definition

Constructors

Initializes a new instance of the LabelElementDrawPart class.

C#
public LabelElementDrawPart(ChartSeries owner, IChartRenderer renderer)
Parameters:ownerChartSeries

The owner.

rendererIChartRenderer

The renderer.

Methods

Adjusts the layout slot.

C#
protected virtual RadRect AdjustLayoutSlot(RadRect rect, DataPointElement point)
Parameters:rectRadRect

The rect.

pointDataPointElement

The point.

Returns:

RadRect

Draws the label element.

C#
public override void Draw()

Overrides: DrawPart<ChartSeries>.Draw()

Draws the connecting line.

C#
protected virtual void DrawConnectingLine(RadGdiGraphics graphics, LabelElement label, DataPointElement point, bool isSmartLabel)
Parameters:graphicsRadGdiGraphics

The graphics.

labelLabelElement

The label.

pointDataPointElement

The point.

isSmartLabelbool

The is smart label.

Gets the line end.

C#
protected virtual PointF GetLineEnd(LabelElement label, DataPointElement point, bool isSmartLabel)
Parameters:labelLabelElement

The label.

pointDataPointElement

The point.

isSmartLabelbool

The is smart label.

Returns:

PointF

Gets the line start.

C#
protected virtual PointF GetLineStart(LabelElement label, DataPointElement point, bool isSmartLabel)
Parameters:labelLabelElement

The label.

pointDataPointElement

The point.

isSmartLabelbool

The is smart label.

Returns:

PointF