İngilizce dilinde oku

Aracılığıyla paylaş


TabletDeviceType Sabit listesi

Tanım

Tablet cihazının kullandığı cihazların türü için değerleri tanımlar.

C#
public enum TabletDeviceType
Devralma
TabletDeviceType

Alanlar

Name Değer Description
Stylus 0

Tablet cihazının ekran kalemi olduğunu gösterir.

Touch 1

Tablet cihazının dokunmatik ekran olduğunu gösterir.

Örnekler

Aşağıdaki örnekte tablet cihazının türünün nasıl belirleneceği gösterilmektedir.

C#
// 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;
}

Şunlara uygulanır

Ürün Sürümler
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9