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

The service supporting the hit-testing when selecting diagram items through a selection rectangle or a click-select action.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public interface IHitTestService

Derived Classes: HitTestService

Properties

Gets the item under the mouse.

C#
IDiagramItem ItemUnderMouse { get; }

Gets the shape under mouse.

C#
IShape ShapeUnderMouse { get; }

Methods

Gets the connections intersecting the specific rectangle.

C#
IEnumerable<IConnection> GetConnectionsUnderRect(Rect rect)
Parameters:rectRectReturns:

IEnumerable<IConnection>

Gets the items near point.

C#
IEnumerable<IDiagramItem> GetItemsNearPoint(Point point, double delta)
Parameters:pointPoint

The point.

deltadouble

The delta.

Returns:

IEnumerable<IDiagramItem>

Gets the items under rectangle.

C#
IEnumerable<IDiagramItem> GetItemsUnderRect(Rect rect)
Parameters:rectRect

The rectangle.

Returns:

IEnumerable<IDiagramItem>

Gets the shapes near point within some delta distance.

C#
IEnumerable<IShape> GetShapesNearPoint(Point point, double delta)
Parameters:pointPoint

The point.

deltadouble

The delta.

Returns:

IEnumerable<IShape>

Gets the shapes under rectangle.

C#
IEnumerable<IShape> GetShapesUnderRect(Rect rect)
Parameters:rectRect

The rectangle.

Returns:

IEnumerable<IShape>

Gets the shapes under point.

C#
IEnumerable<IConnection> GetTopConnectionsUnderPoint(Point point)
Parameters:pointPoint

The point.

Returns:

IEnumerable<IConnection>

Gets the topmost item under point.

C#
IDiagramItem GetTopItemNearPoint(Point point, double delta)
Parameters:pointPoint

The point.

deltadouble

The delta.

Returns:

IDiagramItem

Gets the shapes under point.

C#
IEnumerable<IShape> GetTopShapesUnderPoint(Point point)
Parameters:pointPoint

The point.

Returns:

IEnumerable<IShape>