IncrementalHitTester.IsValid Proprietà

Definizione

Indica se l'oggetto IncrementalHitTester sta effettuando l'hit testing.

public:
 property bool IsValid { bool get(); };
public bool IsValid { get; }
member this.IsValid : bool
Public ReadOnly Property IsValid As Boolean

Valore della proprietà

true se l'oggetto IncrementalHitTester sta effettuando l'hit testing; in caso contrario false.

Esempio

Nell'esempio seguente viene illustrato come verificare se è IncrementalHitTester valido prima di aggiungerlo. In questo esempio si presuppone che sia presente un IncrementalHitTester denominato eraseTester.

// Collect the StylusPackets as the stylus moves.
protected override void OnStylusMove(StylusEventArgs e)
{
    if (eraseTester.IsValid)
    {
        eraseTester.AddPoints(e.GetStylusPoints(this));
    }
}
' Collect the StylusPackets as the stylus moves.
Protected Overrides Sub OnStylusMove(ByVal e As StylusEventArgs)

    If eraseTester.IsValid Then
        eraseTester.AddPoints(e.GetStylusPoints(Me))
    End If

End Sub

Commenti

Restituisce IsValidtrue finché EndHitTesting non viene chiamato . Restituisce falsequindi .

Si applica a