TabletDeviceType Énumération

Définition

Définit des valeurs pour le type de périphériques que le périphérique tablette utilise.

public enum class TabletDeviceType
public enum TabletDeviceType
type TabletDeviceType = 
Public Enum TabletDeviceType
Héritage
TabletDeviceType

Champs

Stylus 0

Indique que le périphérique tablette est un stylet.

Touch 1

Indique que le périphérique tablette est un écran tactile.

Exemples

L’exemple suivant montre comment déterminer le type de 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

S’applique à