HitTestSelection Method

InkCanvas.HitTestSelection Method (Point)

 

Returns a value that indicates which part of the selection adorner intersects or surrounds the specified point.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

member HitTestSelection : 
        point:Point -> InkCanvasSelectionHitResult

Parameters

point
Type: System.Windows.Point

The point to hit test.

Return Value

Type: System.Windows.Controls.InkCanvasSelectionHitResult

A 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft