IncrementalHitTester Class
Dynamically performs hit testing on a Stroke.
System.Windows.Ink::IncrementalHitTester
System.Windows.Ink::IncrementalLassoHitTester
System.Windows.Ink::IncrementalStrokeHitTester
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The IncrementalHitTester type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AddPoint | Adds a Point to the IncrementalHitTester. |
![]() | AddPoints(IEnumerable<Point>) | Adds points to the IncrementalHitTester. |
![]() | AddPoints(StylusPointCollection) | Adds the specified StylusPoint objects to the IncrementalHitTester. |
![]() | AddPointsCore | Infrastructure. Adds points to the IncrementalHitTester. |
![]() | EndHitTesting | Releases resources used by the IncrementalHitTester. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The IncrementalHitTester dynamically determines whether the user "hits" a Stroke. This class enables you to provide immediate feedback to the user in situations such as selecting and erasing ink.
There are two classes that inherit from IncrementalHitTester:
The IncrementalLassoHitTester hit tests strokes by determining whether a lasso path surrounds it.
The IncrementalStrokeHitTester hit tests strokes by determining where an eraser path intersects it.
The following table lists where to learn how to manage digital ink on a custom control.
To do this… | See this article |
|---|---|
Create a control that collects digital ink | |
Create a control that enables the user to select ink | |
Create a control that enables the user to point-erase ink |
The following example demonstrates how to add points to the IncrementalHitTester when the user inputs data with the stylus. The example includes a StrokeHit event handler that erases the part of the Stroke that the user intersects. To create a control that enables a user to erase ink, see How to: Erase Ink on a Custom Control.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
