ClassHitTestService
Service handling the hit-testing of diagram elements.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public class HitTestService : GraphServiceBase, IHitTestService
Inheritance: objectGraphServiceBaseHitTestService
Implements:
Inherited Members
Constructors
HitTestService(IGraphInternal)
Initializes a new instance of the HitTestService class.
Declaration
public HitTestService(IGraphInternal graph)
Parameters
graph
The graph.
Properties
ItemUnderMouse
Gets the item under the mouse.
Declaration
public IDiagramItem ItemUnderMouse { get; }
Property Value
Implements
ShapeUnderMouse
Gets the shape under mouse.
Declaration
public IShape ShapeUnderMouse { get; }
Property Value
Implements
Methods
GetConnectionsUnderRect(Rect)
Gets the connections intersecting the specific rectangle.
Declaration
public IEnumerable<IConnection> GetConnectionsUnderRect(Rect rect)
Parameters
rect
Rect
Returns
Implements
GetItemsNearPoint(Point, double)
Gets the items near point.
Declaration
public IEnumerable<IDiagramItem> GetItemsNearPoint(Point point, double delta)
Parameters
point
Point
The point.
delta
The delta.
Returns
Implements
GetItemsUnderRect(Rect)
Gets the items under rectangle.
Declaration
public IEnumerable<IDiagramItem> GetItemsUnderRect(Rect rect)
Parameters
rect
Rect
The rectangle.
Returns
Implements
GetShapesNearPoint(Point, double)
Gets the shapes near point within some delta distance.
Declaration
public IEnumerable<IShape> GetShapesNearPoint(Point point, double delta)
Parameters
point
Point
The point.
delta
The delta.
Returns
Implements
GetShapesUnderRect(Rect)
Gets the shapes under rectangle.
Declaration
public IEnumerable<IShape> GetShapesUnderRect(Rect rect)
Parameters
rect
Rect
The rectangle.
Returns
Implements
GetTopItemNearPoint(Point, double)
Gets the topmost item under point.
Declaration
public IDiagramItem GetTopItemNearPoint(Point point, double delta)
Parameters
point
Point
The point.
delta
The delta.
Returns
Implements
GetTopShapesUnderPoint(Point)
Gets the shapes under point.
Declaration
public IEnumerable<IShape> GetTopShapesUnderPoint(Point point)
Parameters
point
Point
The point.
Returns
Implements