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