IncrementalHitTester.EndHitTesting 方法

定义

释放由 IncrementalHitTester 使用的资源。

public:
 void EndHitTesting();
public void EndHitTesting ();
member this.EndHitTesting : unit -> unit
Public Sub EndHitTesting ()

示例

以下示例演示如何EndHitTesting使用 .IncrementalHitTester 此示例假定有一个 IncrementalHitTester 调用 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();
}
     ' Unsubscribe from the StrokeHitChanged event when the
     ' user lifts the stylus.
     Protected Overrides Sub OnStylusUp(ByVal e As StylusEventArgs)

         eraseTester.AddPoints(e.GetStylusPoints(Me))

         RemoveHandler eraseTester.StrokeHit, _
             AddressOf eraseTester_StrokeHit
         eraseTester.EndHitTesting()

     End Sub

注解

EndHitTesting完成命中测试时IncrementalHitTester调用该方法。

适用于