Interface IHitTestService
The service supporting the hit-testing when selecting diagram items through a selection rectangle or a click-select action.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public interface IHitTestService
Remarks
Note that this service can be customized and plugged into the ServiceLocator.
Properties
ItemUnderMouse
Gets the item under the mouse.
Declaration
IDiagramItem ItemUnderMouse { get; }
Property Value
IDiagramItem
|
ShapeUnderMouse
Methods
GetConnectionsUnderRect(Rect)
Gets the connections intersecting the specific rectangle.
Declaration
IEnumerable<IConnection> GetConnectionsUnderRect(Rect rect)
Parameters
Rect
rect
|
Returns
System.Collections.Generic.IEnumerable<IConnection>
|
GetItemsNearPoint(Point, Double)
Gets the items near point.
Declaration
IEnumerable<IDiagramItem> GetItemsNearPoint(Point point, double delta)
Parameters
Point
point
The point. |
System.Double
delta
The delta. |
Returns
System.Collections.Generic.IEnumerable<IDiagramItem>
|
GetItemsUnderRect(Rect)
Gets the items under rectangle.
Declaration
IEnumerable<IDiagramItem> GetItemsUnderRect(Rect rect)
Parameters
Rect
rect
The rectangle. |
Returns
System.Collections.Generic.IEnumerable<IDiagramItem>
|
GetShapesNearPoint(Point, Double)
Gets the shapes near point within some delta distance.
Declaration
IEnumerable<IShape> GetShapesNearPoint(Point point, double delta)
Parameters
Point
point
The point. |
System.Double
delta
The delta. |
Returns
System.Collections.Generic.IEnumerable<IShape>
|
GetShapesUnderRect(Rect)
Gets the shapes under rectangle.
Declaration
IEnumerable<IShape> GetShapesUnderRect(Rect rect)
Parameters
Rect
rect
The rectangle. |
Returns
System.Collections.Generic.IEnumerable<IShape>
|
GetTopConnectionsUnderPoint(Point)
Gets the shapes under point.
Declaration
IEnumerable<IConnection> GetTopConnectionsUnderPoint(Point point)
Parameters
Point
point
The point. |
Returns
System.Collections.Generic.IEnumerable<IConnection>
|
GetTopItemNearPoint(Point, Double)
Gets the topmost item under point.
Declaration
IDiagramItem GetTopItemNearPoint(Point point, double delta)
Parameters
Point
point
The point. |
System.Double
delta
The delta. |
Returns
IDiagramItem
|
GetTopShapesUnderPoint(Point)
Gets the shapes under point.
Declaration
IEnumerable<IShape> GetTopShapesUnderPoint(Point point)
Parameters
Point
point
The point. |
Returns
System.Collections.Generic.IEnumerable<IShape>
|