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

설명

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

적용 대상