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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

Syntax:

C#
public abstract class SparkDrawPart<T> : ISparkDrawPart where T : UISparkElement

Inheritance: objectSparkDrawPart<T>

Derived Classes: CartesianSparkGridLineAnnotationDrawPartCartesianSparkPlotBandAnnotationDrawPartSparkAxisDrawPartSparkSeriesDrawPart

Implements: ISparkDrawPart

Constructors

C#
public SparkDrawPart(T element, ISparkRenderer renderer)
Parameters:elementTrendererISparkRenderer

Properties

Gets the element.

C#
public T Element { get; }
Property Value:

The element.

Gets the offset X.

C#
public virtual float OffsetX { get; }
Property Value:

The offset X.

Gets the offset Y.

C#
public virtual float OffsetY { get; }
Property Value:

The offset Y.

Gets the context object which will be painted as fill.

C#
public object PaintContext { get; }
Property Value:

The renderer.

Implements: ISparkDrawPart.PaintContext

Gets the renderer.

C#
public ISparkRenderer Renderer { get; }
Property Value:

The renderer.

Implements: ISparkDrawPart.Renderer

Gets the view port offset X.

C#
public virtual float ViewportOffsetX { get; }
Property Value:

The view port offset X.

Gets the view port offset Y.

C#
public virtual float ViewportOffsetY { get; }
Property Value:

The view port offset Y.

Methods

Draws this instance.

C#
public abstract void Draw()

Implements: ISparkDrawPart.Draw()

C#
protected virtual RectangleF GetAdjustedClipRect(Graphics g)
Parameters:gGraphicsReturns:

RectangleF

Hits the test.

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

The location.

Returns:

SparkDataPoint

Implements: ISparkDrawPart.HitTest(Point)

Determines whether the element is valid.

C#
protected virtual bool IsElementValid()
Returns:

bool

C#
protected virtual void PaintFill(GraphicsPath path, Color fillColor)
Parameters:pathGraphicsPathfillColorColor
C#
protected virtual void PaintFill(GraphicsPath path)
Parameters:pathGraphicsPath
C#
protected virtual void PaintStroke(GraphicsPath path, Color borderColor, float width)
Parameters:pathGraphicsPathborderColorColorwidthfloat
C#
protected virtual void PaintStroke(GraphicsPath path, Color borderColor)
Parameters:pathGraphicsPathborderColorColor
C#
protected virtual void PaintStroke(GraphicsPath path)
Parameters:pathGraphicsPath