TabletDeviceType Enum

Definitie

Definieert waarden voor het type apparaten dat door het tabletapparaat wordt gebruikt.

public enum class TabletDeviceType
public enum TabletDeviceType
type TabletDeviceType = 
Public Enum TabletDeviceType
Overname
TabletDeviceType

Velden

Name Waarde Description
Stylus 0

Geeft aan dat het tabletapparaat een stylus is.

Touch 1

Geeft aan dat het tabletapparaat een touchscreen is.

Voorbeelden

In het volgende voorbeeld ziet u hoe u het type tabletapparaat kunt bepalen.

// 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

Van toepassing op