HitTestService
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
Initializes a new instance of the HitTestService class.
Properties
Gets the item under the mouse.
public IDiagramItem ItemUnderMouse { get; }
Implements:
Gets the shape under mouse.
public IShape ShapeUnderMouse { get; }
Implements:
Methods
Gets the connections intersecting the specific rectangle.
public IEnumerable<IConnection> GetConnectionsUnderRect(Rect rect)
Implements:
Gets the items near point.
public IEnumerable<IDiagramItem> GetItemsNearPoint(Point point, double delta)
The point.
deltadoubleThe delta.
Returns:Implements:
Gets the items under rectangle.
public IEnumerable<IDiagramItem> GetItemsUnderRect(Rect rect)
The rectangle.
Returns:Implements:
Gets the shapes near point within some delta distance.
public IEnumerable<IShape> GetShapesNearPoint(Point point, double delta)
The point.
deltadoubleThe delta.
Returns:Implements:
Gets the shapes under rectangle.
public IEnumerable<IShape> GetShapesUnderRect(Rect rect)
The rectangle.
Returns:Implements:
Gets the topmost item under point.
public IDiagramItem GetTopItemNearPoint(Point point, double delta)
The point.
deltadoubleThe delta.
Returns:Implements:
Gets the shapes under point.
public IEnumerable<IShape> GetTopShapesUnderPoint(Point point)
The point.
Returns:Implements: