StylusButton 클래스

정의

스타일러스의 단추를 나타냅니다.

public ref class StylusButton
public class StylusButton
type StylusButton = class
Public Class StylusButton
상속
StylusButton

예제

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

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

속성

Name Description
Guid

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

Name

스타일러스 단추의 이름을 가져옵니다.

StylusButtonState

스타일러스 단추의 상태를 가져옵니다.

StylusDevice

이 단추가 속한 스타일러스를 가져옵니다.

메서드

Name Description
Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

의 문자열 표현을 StylusButton만듭니다.

적용 대상