TabletHardwareCapabilities 列舉

定義

定義值,這些值指定 Tablet 裝置 (包括桌面數位板和滑鼠) 的硬體能力。

此列舉支援其成員值的位元組合。

public enum class TabletHardwareCapabilities
[System.Flags]
[System.Serializable]
public enum TabletHardwareCapabilities
[System.Flags]
public enum TabletHardwareCapabilities
[<System.Flags>]
[<System.Serializable>]
type TabletHardwareCapabilities = 
[<System.Flags>]
type TabletHardwareCapabilities = 
Public Enum TabletHardwareCapabilities
繼承
TabletHardwareCapabilities
屬性

欄位

HardProximity 4

表示當手寫筆位於 Tablet 裝置的實體偵測範圍之內 (附近) 時,Tablet 裝置可以產生空中封包。

Integrated 1

表示數位板與顯示器整合在一起。

None 0

表示 Tablet 裝置無法提供此資訊。

StylusHasPhysicalIds 8

表示 Tablet 裝置可唯一識別使用中的手寫筆。

StylusMustTouch 2

表示手寫筆必須與 Tablet 裝置實體接觸才能報告其位置。

SupportsPressure 1073741824

表示 Tablet 裝置可以偵測到使用者在使用手寫筆時套用的壓力總量。

範例

下列範例示範如何判斷平板電腦裝置的硬體功能。

if ((Tablet.CurrentTabletDevice.TabletHardwareCapabilities
   & TabletHardwareCapabilities.SupportsPressure) ==
     TabletHardwareCapabilities.SupportsPressure)
{
    textbox1.AppendText("The tablet can detect the pressure of the teblet pen.");
}
If ((Tablet.CurrentTabletDevice.TabletHardwareCapabilities And _
     TabletHardwareCapabilities.SupportsPressure) = _
     TabletHardwareCapabilities.SupportsPressure) Then

    textbox1.AppendText("The tablet can detect the pressure of the teblet pen.")
End If

備註

這個列舉型別的 FlagsAttribute 屬性允許成員值的位元組合。

適用於