InkCanvas::HitTestSelection Method (Point)
.NET Framework (current version)
Returns a value that indicates which part of the selection adorner intersects or surrounds the specified point.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- point
-
Type:
System.Windows::Point
The point to hit test.
Return Value
Type: System.Windows.Controls::InkCanvasSelectionHitResultA value that indicates which part of the selection adorner intersects or surrounds a specified point.
Use the HitTestSelection method to determine whether the point is within a stroke selection's bounds or on one of the eight handles. This is useful when performing drag and drop operations.
The following example demonstrates how use HitTestSelection to determine whether to create a DataObject to initiate drag and drop. To implement drag and drop between two InkCanvas objects, see How to: Drag and Drop Ink.
.NET Framework
Available since 3.0
Available since 3.0
Show: