TabletDeviceType Énumération
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit des valeurs pour le type d’appareils que l’appareil tablette utilise.
public enum class TabletDeviceType
public enum TabletDeviceType
type TabletDeviceType =
Public Enum TabletDeviceType
- Héritage
Champs
| Nom | Valeur | Description |
|---|---|---|
| Stylus | 0 | Indique que l’appareil tablette est un stylet. |
| Touch | 1 | Indique que l’appareil tablette est un écran tactile. |
Exemples
L’exemple suivant montre comment déterminer le type d’appareil tablette.
// 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