StylusPoint.HasProperty(StylusPointProperty) 메서드

정의

현재 StylusPoint에 지정된 속성이 들어 있는지 여부를 반환합니다.

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

매개 변수

stylusPointProperty
StylusPointProperty

StylusPointProperty에서 확인할 StylusPoint입니다.

반환

지정된 StylusPointProperty가 현재 StylusPoint에 있으면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서는 속성의 값을 가져오기 전에 스타일러스 지점 속성이 있는지 확인 합니다. 이 예제에서는 있다고 가정를 StylusPoint 호출 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

설명

검사할 여부를 StylusPoint 호출 지정된 된 속성을 포함 합니다 HasProperty 중 하나를 호출 하기 전에 GetPropertyValue 메서드 또는 SetPropertyValue 메서드.

적용 대상