TabletDeviceType Enum
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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
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