TabletDevice.Type Eigenschaft

Definition

Ruft den TabletDeviceType des Tablettgeräts ab.

public:
 property System::Windows::Input::TabletDeviceType Type { System::Windows::Input::TabletDeviceType get(); };
public System.Windows.Input.TabletDeviceType Type { get; }
member this.Type : System.Windows.Input.TabletDeviceType
Public ReadOnly Property Type As TabletDeviceType

Eigenschaftswert

Der TabletDeviceType des Tablettgeräts.

Beispiele

Im folgenden Codebeispiel wird die Type -Eigenschaft veranschaulicht.

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

Gilt für: