Share via


StylusPoint.HasProperty(StylusPointProperty) Yöntem

Tanım

Geçerlinin StylusPoint belirtilen özelliği içerip içermediğini döndürür.

public:
 bool HasProperty(System::Windows::Input::StylusPointProperty ^ stylusPointProperty);
public bool HasProperty (System.Windows.Input.StylusPointProperty stylusPointProperty);
member this.HasProperty : System.Windows.Input.StylusPointProperty -> bool
Public Function HasProperty (stylusPointProperty As StylusPointProperty) As Boolean

Parametreler

stylusPointProperty
StylusPointProperty

StylusPointProperty içinde denetlenecek .StylusPoint

Döndürülenler

true belirtilen StylusPointProperty geçerli StylusPointiçindeyse ; değilse, false.

Örnekler

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

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

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