StylusPoint.GetPropertyValue(StylusPointProperty) Méthode
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.
Retourne la valeur de la propriété spécifiée.
public:
int GetPropertyValue(System::Windows::Input::StylusPointProperty ^ stylusPointProperty);
public int GetPropertyValue (System.Windows.Input.StylusPointProperty stylusPointProperty);
member this.GetPropertyValue : System.Windows.Input.StylusPointProperty -> int
Public Function GetPropertyValue (stylusPointProperty As StylusPointProperty) As Integer
Paramètres
- stylusPointProperty
- StylusPointProperty
Le StylusPointProperty qui spécifie quelle valeur de propriété obtenir.
Retours
Valeur de la StylusPointProperty spécifiée.
Exceptions
stylusPointProperty
ne fait pas partie des propriétés dans Description.
Exemples
L’exemple suivant vérifie l’existence d’une propriété de point de stylet avant d’obtenir la valeur de la propriété. Cet exemple suppose qu’il existe un StylusPoint appelé point
.
if (point.HasProperty(StylusPointProperties.PitchRotation))
{
int pitchRotation = point.GetPropertyValue(StylusPointProperties.PitchRotation);
}
If point.HasProperty(StylusPointProperties.PitchRotation) Then
Dim pitchRotation As Integer = _
point.GetPropertyValue(StylusPointProperties.PitchRotation)
End If
Remarques
Pour case activée si contient StylusPoint la propriété spécifiée, appelez avant HasProperty d’appeler la GetPropertyValue méthode ou la SetPropertyValue méthode .
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour