IncrementalHitTester.IsValid Propriété

Définition

Obtient si le IncrementalHitTester effectue un test d'atteinte.

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

Valeur de propriété

Boolean

true si le IncrementalHitTester effectue un test d'atteinte ; sinon, false.

Exemples

L’exemple suivant montre comment vérifier si l’élément IncrementalHitTester est valide avant d’ajouter des points à celui-ci. Cet exemple suppose qu’il existe un IncrementalHitTester appel 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

Remarques

true Retour IsValid jusqu’à EndHitTesting ce qu’il soit appelé. Il retourne falseensuite .

S’applique à