StylusPoint.SetPropertyValue(StylusPointProperty, Int32) Yöntem

Tanım

Belirtilen özelliği belirtilen değere ayarlar.

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)

Parametreler

stylusPointProperty
StylusPointProperty

StylusPointProperty ayarlanacağı özellik değerini belirtir.

value
Int32

Özelliğin değeri.

Özel durumlar

stylusPointProperty içindeki Descriptionözelliklerden biri değildir.

Örnekler

Aşağıdaki örnek, özelliğin değerini ayarlamadan önce ekran kalemi noktası özelliğinin varlığını denetler. Bu örnekte adlı pointbir StylusPoint olduğu varsayılır.

if (point.HasProperty(StylusPointProperties.PitchRotation))
{
    point.SetPropertyValue(StylusPointProperties.PitchRotation, 1000);
}
If point.HasProperty(StylusPointProperties.PitchRotation) Then
    point.SetPropertyValue(StylusPointProperties.PitchRotation, 1000)
End If

Açıklamalar

öğesinin StylusPoint belirtilen özelliği içerip içermediğini denetlemek için yöntemini veya yöntemini çağırmadan GetPropertyValue önce öğesini çağırın HasPropertySetPropertyValue.

Şunlara uygulanır