Class
SparkDrawPart<T>

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

Syntax:

cs-api-definition
public abstract class SparkDrawPart<T> : ISparkDrawPart where T : UISparkElement

Inheritance: objectSparkDrawPart<T>

Derived Classes: CartesianSparkGridLineAnnotationDrawPartCartesianSparkPlotBandAnnotationDrawPartSparkAxisDrawPartSparkSeriesDrawPart

Implements: ISparkDrawPart

Constructors

SparkDrawPart(T, ISparkRenderer)

Declaration

cs-api-definition
public SparkDrawPart(T element, ISparkRenderer renderer)

Parameters

element

T

renderer

ISparkRenderer

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.

PaintContext

Gets the context object which will be painted as fill.

Declaration

cs-api-definition
public object PaintContext { get; }

Property Value

object

The renderer.

Implements ISparkDrawPart.PaintContext

Renderer

Gets the renderer.

Declaration

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

Property Value

ISparkRenderer

The renderer.

Implements ISparkDrawPart.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 ISparkDrawPart.Draw()

GetAdjustedClipRect(Graphics)

Declaration

cs-api-definition
protected virtual RectangleF GetAdjustedClipRect(Graphics g)

Parameters

g

Graphics

Returns

RectangleF

HitTest(Point)

Hits the test.

Declaration

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

Parameters

location

Point

The location.

Returns

SparkDataPoint

Implements ISparkDrawPart.HitTest(Point)

IsElementValid()

Determines whether the element is valid.

Declaration

cs-api-definition
protected virtual bool IsElementValid()

Returns

bool

PaintFill(GraphicsPath)

Declaration

cs-api-definition
protected virtual void PaintFill(GraphicsPath path)

Parameters

path

GraphicsPath

PaintFill(GraphicsPath, Color)

Declaration

cs-api-definition
protected virtual void PaintFill(GraphicsPath path, Color fillColor)

Parameters

path

GraphicsPath

fillColor

Color

PaintStroke(GraphicsPath)

Declaration

cs-api-definition
protected virtual void PaintStroke(GraphicsPath path)

Parameters

path

GraphicsPath

PaintStroke(GraphicsPath, Color)

Declaration

cs-api-definition
protected virtual void PaintStroke(GraphicsPath path, Color borderColor)

Parameters

path

GraphicsPath

borderColor

Color

PaintStroke(GraphicsPath, Color, float)

Declaration

cs-api-definition
protected virtual void PaintStroke(GraphicsPath path, Color borderColor, float width)

Parameters

path

GraphicsPath

borderColor

Color

width

float