Interface
IHitTestService

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.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public interface IHitTestService

Properties

ItemUnderMouse

Gets the item under the mouse.

Declaration

cs-api-definition
IDiagramItem ItemUnderMouse { get; }

Property Value

IDiagramItem

ShapeUnderMouse

Gets the shape under mouse.

Declaration

cs-api-definition
IShape ShapeUnderMouse { get; }

Property Value

IShape

Methods

GetConnectionsUnderRect(Rect)

Gets the connections intersecting the specific rectangle.

Declaration

cs-api-definition
IEnumerable<IConnection> GetConnectionsUnderRect(Rect rect)

Parameters

rect

Rect

Returns

IEnumerable<IConnection>

GetItemsNearPoint(Point, double)

Gets the items near point.

Declaration

cs-api-definition
IEnumerable<IDiagramItem> GetItemsNearPoint(Point point, double delta)

Parameters

point

Point

The point.

delta

double

The delta.

Returns

IEnumerable<IDiagramItem>

GetItemsUnderRect(Rect)

Gets the items under rectangle.

Declaration

cs-api-definition
IEnumerable<IDiagramItem> GetItemsUnderRect(Rect rect)

Parameters

rect

Rect

The rectangle.

Returns

IEnumerable<IDiagramItem>

GetShapesNearPoint(Point, double)

Gets the shapes near point within some delta distance.

Declaration

cs-api-definition
IEnumerable<IShape> GetShapesNearPoint(Point point, double delta)

Parameters

point

Point

The point.

delta

double

The delta.

Returns

IEnumerable<IShape>

GetShapesUnderRect(Rect)

Gets the shapes under rectangle.

Declaration

cs-api-definition
IEnumerable<IShape> GetShapesUnderRect(Rect rect)

Parameters

rect

Rect

The rectangle.

Returns

IEnumerable<IShape>

GetTopItemNearPoint(Point, double)

Gets the topmost item under point.

Declaration

cs-api-definition
IDiagramItem GetTopItemNearPoint(Point point, double delta)

Parameters

point

Point

The point.

delta

double

The delta.

Returns

IDiagramItem

GetTopShapesUnderPoint(Point)

Gets the shapes under point.

Declaration

cs-api-definition
IEnumerable<IShape> GetTopShapesUnderPoint(Point point)

Parameters

point

Point

The point.

Returns

IEnumerable<IShape>