StylusButton.Guid 속성

정의

Guid 스타일러스 단추를 나타내는 값을 가져옵니다.

public:
 property Guid Guid { Guid get(); };
public Guid Guid { get; }
member this.Guid : Guid
Public ReadOnly Property Guid As Guid

속성 값

Guid 스타일러스 단추를 나타내는 속성입니다.

예제

다음은 사용자가 스타일러스의 배럴 단추를 눌렀는지 여부를 확인합니다.

void OnStylusButtonDown(object sender, StylusButtonEventArgs e)
{
    StylusButton myStylusButton = e.StylusButton;

    if (myStylusButton.Guid == StylusPointProperties.BarrelButton.Id)
    {
        // the barrel button on the stylus has been pressed
    }
}
Private Sub OnStylusButtonDown(ByVal sender As Object, ByVal e As StylusButtonEventArgs)

    Dim myStylusButton As StylusButton = e.StylusButton
    If myStylusButton.Guid = StylusPointProperties.BarrelButton.Id Then
        ' the barrel button on the stylus has been pressed
    End If
End Sub

설명

이 속성의 값은 시스템의 스타일러스 단추에서 고유하도록 보장됩니다.

적용 대상