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

Service handling the hit-testing of diagram elements.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class HitTestService : GraphServiceBase, IHitTestService

Inheritance: objectGraphServiceBaseHitTestService

Implements: IHitTestService

Inherited Members GraphServiceBase.Graph

Constructors

Initializes a new instance of the HitTestService class.

C#
public HitTestService(IGraphInternal graph)
Parameters:graphIGraphInternal

The graph.

Properties

Gets the item under the mouse.

C#
public IDiagramItem ItemUnderMouse { get; }

Implements: IHitTestService.ItemUnderMouse

Gets the shape under mouse.

C#
public IShape ShapeUnderMouse { get; }

Implements: IHitTestService.ShapeUnderMouse

Methods

Gets the connections intersecting the specific rectangle.

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

IEnumerable<IConnection>

Implements: IHitTestService.GetConnectionsUnderRect(Rect)

Gets the items near point.

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

The point.

deltadouble

The delta.

Returns:

IEnumerable<IDiagramItem>

Implements: IHitTestService.GetItemsNearPoint(Point, double)

Gets the items under rectangle.

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

The rectangle.

Returns:

IEnumerable<IDiagramItem>

Implements: IHitTestService.GetItemsUnderRect(Rect)

Gets the shapes near point within some delta distance.

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

The point.

deltadouble

The delta.

Returns:

IEnumerable<IShape>

Implements: IHitTestService.GetShapesNearPoint(Point, double)

Gets the shapes under rectangle.

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

The rectangle.

Returns:

IEnumerable<IShape>

Implements: IHitTestService.GetShapesUnderRect(Rect)

Gets the shapes under point.

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

The point.

Returns:

IEnumerable<IConnection>

Implements: IHitTestService.GetTopConnectionsUnderPoint(Point)

Gets the topmost item under point.

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

The point.

deltadouble

The delta.

Returns:

IDiagramItem

Implements: IHitTestService.GetTopItemNearPoint(Point, double)

Gets the shapes under point.

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

The point.

Returns:

IEnumerable<IShape>

Implements: IHitTestService.GetTopShapesUnderPoint(Point)