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

Provides the control surface and painting callbacks through which a SparkView is hosted.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface ISparkViewHost

Properties

Gets the rectangle available for rendering the spark view.

C#
RectangleF ClientRectangle { get; }

Gets the WinForms control associated with the host, or null when it is not attached to a control tree.

C#
Control Control { get; }

Gets or sets the controllers that handle input and view behavior for the hosted spark view.

C#
SparkViewControllerCollection Controllers { get; set; }

Gets or sets the spark view rendered by this host.

C#
SparkView View { get; set; }

Gets or sets whether the hosted spark view is visible.

C#
bool Visible { get; set; }

Methods

Invalidates the host so the spark view is repainted.

C#
void Invalidate()

Invokes the host's fill-painting callback so subscribers can customize a sparkline fill.

C#
void OnPaintSparkFill(object sender, PaintSparkFillEventArgs e)
Parameters:senderobject

The element requesting fill painting.

ePaintSparkFillEventArgs

The fill settings and drawing context.

Invokes the host's stroke-painting callback so subscribers can customize a sparkline stroke.

C#
void OnPaintSparkStroke(object sender, PaintSparkStrokeEventArgs e)
Parameters:senderobject

The element requesting stroke painting.

ePaintSparkStrokeEventArgs

The stroke settings and drawing context.