InkCanvas::HitTestSelection Method (Point)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public:
InkCanvasSelectionHitResult HitTestSelection(
	Point point
)

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: