TabletDeviceType Enumeração
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Define valores para o tipo de dispositivos que o tablet utiliza.
public enum class TabletDeviceType
public enum TabletDeviceType
type TabletDeviceType =
Public Enum TabletDeviceType
- Herança
Campos
| Name | Valor | Description |
|---|---|---|
| Stylus | 0 | Indica que o tablet é uma caneta. |
| Touch | 1 | Indica que o tablet é um ecrã tátil. |
Exemplos
O exemplo seguinte demonstra como determinar o tipo de dispositivo tablet.
// 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