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.Windows.Diagrams.Core.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
System.Windows.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
System.Windows.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
System.Windows.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
System.Windows.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
System.Windows.Rect
rect
The rectangle. |
Returns
System.Collections.Generic.IEnumerable<IShape>
|
GetTopItemNearPoint(Point, Double)
Gets the topmost item under point.
Declaration
IDiagramItem GetTopItemNearPoint(Point point, double delta)
Parameters
System.Windows.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
System.Windows.Point
point
The point. |
Returns
System.Collections.Generic.IEnumerable<IShape>
|