IncrementalHitTester.IsValid Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient si le test d’accès IncrementalHitTester est atteint.
public:
property bool IsValid { bool get(); };
public bool IsValid { get; }
member this.IsValid : bool
Public ReadOnly Property IsValid As Boolean
Valeur de propriété
true si le IncrementalHitTester test de positionnement est atteint ; sinon, false.
Exemples
L’exemple suivant montre comment vérifier si l’élément IncrementalHitTester est valide avant d’y ajouter des points. 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
IsValid Retour true jusqu’à ce qu’il EndHitTesting soit appelé. Ensuite, elle retourne false.