StylusPoint.GetPropertyValue(StylusPointProperty) メソッド

定義

指定したプロパティの値を返します。

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

パラメーター

stylusPointProperty
StylusPointProperty

取得するプロパティ値を指定する StylusPointProperty

戻り値

指定した StylusPointProperty の値。

例外

stylusPointPropertyDescription のプロパティの 1 つではありません。

次の例では、プロパティの値を取得する前に、スタイラス ポイント プロパティの存在を確認します。 この例では、 と呼ばれる pointがあることをStylusPoint前提としています。

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チェックするには、 メソッドまたは メソッドを呼び出す前に をGetPropertyValueSetPropertyValue呼び出HasPropertyします。

適用対象