Class
DrawPart<T>

Definition

Constructors

DrawPart(T, IChartRenderer)

Declaration

cs-api-definition
public DrawPart(T element, IChartRenderer renderer)

Parameters

element

T

renderer

IChartRenderer

Properties

Element

Gets the element.

Declaration

cs-api-definition
public T Element { get; }

Property Value

T

The element.

OffsetX

Gets the offset X.

Declaration

cs-api-definition
public virtual float OffsetX { get; }

Property Value

float

The offset X.

OffsetY

Gets the offset Y.

Declaration

cs-api-definition
public virtual float OffsetY { get; }

Property Value

float

The offset Y.

Renderer

Gets the renderer.

Declaration

cs-api-definition
public IChartRenderer Renderer { get; }

Property Value

IChartRenderer

The renderer.

Implements IDrawPart.Renderer

ViewportOffsetX

Gets the view port offset X.

Declaration

cs-api-definition
public virtual float ViewportOffsetX { get; }

Property Value

float

The view port offset X.

ViewportOffsetY

Gets the view port offset Y.

Declaration

cs-api-definition
public virtual float ViewportOffsetY { get; }

Property Value

float

The view port offset Y.

Methods

Draw()

Draws this instance.

Declaration

cs-api-definition
public abstract void Draw()

Implements IDrawPart.Draw()

GetLabelPosition(RadSize, RadRect)

Gets the label position.

Declaration

cs-api-definition
public virtual PointF GetLabelPosition(RadSize textSize, RadRect labelSlot)

Parameters

textSize

RadSize

Size of the text.

labelSlot

RadRect

The label slot.

Returns

PointF

HitTest(Point)

Hits the test.

Declaration

cs-api-definition
public virtual DataPoint HitTest(Point location)

Parameters

location

Point

The location.

Returns

DataPoint

Implements IDrawPart.HitTest(Point)

IsElementValid()

Determines whether the element is valid.

Declaration

cs-api-definition
protected virtual bool IsElementValid()

Returns

bool