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

Provides the drag-rectangle overlay and pointer handling shared by lasso selection and zoom controllers.

The stored drag locations are clipped to the plot area for the overlay. The derived selection and zoom controllers use the raw mouse-up coordinates for their final rectangle, so releasing outside the plot area can make the operation extend beyond the clipped overlay.

Definition

Constructors

Initializes the drag overlay used by the lasso controller.

C#
public BaseLassoController()

Properties

Gets or sets the clipped location where the current left-button drag began.

C#
public virtual Point MouseDownLocation { get; set; }

Gets or sets the most recent clipped pointer location during the current left-button drag.

C#
public virtual Point MouseMoveLocation { get; set; }

Gets the result.

C#
protected virtual ViewResult Result { get; }
Property Value:

The result.

Methods

Creates the lasso rectangle.

C#
public virtual Rectangle CreateLassoRectangle()
Returns:

Rectangle

Raises the event.

C#
protected override ActionResult OnDraw(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Returns:

ActionResult

Overrides: ChartViewController.OnDraw(EventArgs)

Raises the event.

C#
protected override ActionResult OnKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs

The KeyPressEventArgs instance containing the event data.

Returns:

ActionResult

Overrides: ChartViewController.OnKeyPress(KeyPressEventArgs)

Raises the event.

C#
protected override ActionResult OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

ActionResult

Overrides: ChartViewController.OnMouseDown(MouseEventArgs)

Raises the event.

C#
protected override ActionResult OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

ActionResult

Overrides: ChartViewController.OnMouseMove(MouseEventArgs)

Raises the event.

C#
protected override ActionResult OnMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

ActionResult

Overrides: ChartViewController.OnMouseWheel(MouseEventArgs)

Truncates the zoom.

C#
protected virtual float TruncateZoom(float value)
Parameters:valuefloat

The value.

Returns:

float

Zooms the and pan.

C#
public virtual void ZoomAndPan(float from, float to)
Parameters:fromfloat

From.

tofloat

To.

Zooms and pans.

C#
public virtual void ZoomAndPan(Point from, Point to)
Parameters:fromPoint

From.

toPoint

To.