TabletDeviceType 열거형

정의

태블릿 디바이스에서 사용하는 디바이스 유형 값을 정의합니다.

public enum class TabletDeviceType
public enum TabletDeviceType
type TabletDeviceType = 
Public Enum TabletDeviceType
상속
TabletDeviceType

필드

Stylus 0

태블릿 디바이스가 스타일러스임을 나타냅니다.

Touch 1

태블릿 디바이스가 터치 스크린임을 나타냅니다.

예제

다음 예제에서는 태블릿 디바이스의 종류를 결정 하는 방법에 설명 합니다.

// Get the type of tablet device
TabletDeviceType myTabletDeviceType = myTabletDevice.Type;

// Display the type of tablet device
textbox1.AppendText("Type: ");

switch (myTabletDeviceType)
{
    case TabletDeviceType.Stylus:
        textbox1.AppendText("Stylus\n");
        break;

    default: // TabletDeviceType.Touch:
        textbox1.AppendText("Touch Pad\n");
        break;
}
' Get the type of tablet device
Dim myTabletDeviceType As TabletDeviceType = myTabletDevice.Type

' Display the type of tablet device
textbox1.AppendText("Type: ")

Select Case myTabletDeviceType
    Case TabletDeviceType.Stylus
        textbox1.AppendText("Stylus" & vbCrLf)
    Case Else ' TabletDeviceType.Touch
        textbox1.AppendText("Touch pad" & vbCrLf)
End Select

적용 대상