IncrementalHitTester.EndHitTesting Method ()

 
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.

Releases resources used by the IncrementalHitTester.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

public void EndHitTesting()

Call the EndHitTesting method when the IncrementalHitTester finishes hit testing.

The following example demonstrates how to call EndHitTesting after using an IncrementalHitTester. This example assumes that there is an IncrementalHitTester called eraseTester.

// Unsubscribe from the StrokeHitChanged event when the
// user lifts the stylus.
protected override void OnStylusUp(StylusEventArgs e)
{

    eraseTester.AddPoints(e.GetStylusPoints(this));
    eraseTester.StrokeHit -= new
        StrokeHitEventHandler(eraseTester_StrokeHit);
    eraseTester.EndHitTesting();
}

.NET Framework
Available since 3.0
Return to top
Show: