StylusPoint.SetPropertyValue(StylusPointProperty, Int32) Méthode

Définition

Définit la propriété spécifiée sur la valeur indiquée.

public:
 void SetPropertyValue(System::Windows::Input::StylusPointProperty ^ stylusPointProperty, int value);
public void SetPropertyValue (System.Windows.Input.StylusPointProperty stylusPointProperty, int value);
member this.SetPropertyValue : System.Windows.Input.StylusPointProperty * int -> unit
Public Sub SetPropertyValue (stylusPointProperty As StylusPointProperty, value As Integer)

Paramètres

stylusPointProperty
StylusPointProperty

Le StylusPointProperty qui spécifie quelle valeur de propriété définir.

value
Int32

Valeur de la propriété.

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 de définir la valeur de la propriété. Cet exemple suppose qu’il existe un StylusPoint appelé point.

if (point.HasProperty(StylusPointProperties.PitchRotation))
{
    point.SetPropertyValue(StylusPointProperties.PitchRotation, 1000);
}
If point.HasProperty(StylusPointProperties.PitchRotation) Then
    point.SetPropertyValue(StylusPointProperties.PitchRotation, 1000)
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 à