TabletDevice 類別

定義

表示 Tablet PC 的數位板裝置。

public ref class TabletDevice sealed : System::Windows::Input::InputDevice
public sealed class TabletDevice : System.Windows.Input.InputDevice
type TabletDevice = class
    inherit InputDevice
Public NotInheritable Class TabletDevice
Inherits InputDevice
繼承

範例

下列範例示範如何取得 支持的屬性 TabletDevice

TabletDevice currentTablet = Tablet.CurrentTabletDevice;
ReadOnlyCollection<StylusPointProperty> supportedProperties = 
    currentTablet.SupportedStylusPointProperties;

StringWriter properties = new StringWriter();

foreach (StylusPointProperty property in supportedProperties)
{
    properties.WriteLine(property.ToString());
}

MessageBox.Show(properties.ToString());
Dim currentTablet As TabletDevice = Tablet.CurrentTabletDevice

Dim supportedProperties As ReadOnlyCollection(Of StylusPointProperty) _
            = currentTablet.SupportedStylusPointProperties

Dim properties As New StringWriter()

For Each supportedProperty As StylusPointProperty In supportedProperties
    properties.WriteLine(supportedProperty.ToString())
Next supportedProperty

MessageBox.Show(properties.ToString())

屬性

ActiveSource

取得報告目前 Tablet 裝置輸入的 PresentationSource

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObject

(繼承來源 DispatcherObject)
Id

取得系統上 Tablet 裝置的唯一識別項。

Name

取得 Tablet 裝置的名稱。

ProductId

取得 Tablet 裝置的產品識別項。

StylusDevices

取得與 Tablet 裝置相關的 StylusDeviceCollection

SupportedStylusPointProperties

取得 StylusPointProperty 支援的 TabletDevice 物件集合。

TabletHardwareCapabilities

取得 Tablet 裝置的 TabletHardwareCapabilities

Target

取得為 Tablet 裝置提供基本輸入處理的 IInputElement

Type

取得 Tablet 裝置的 TabletDeviceType

方法

CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObject

(繼承來源 DispatcherObject)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回 Tablet 裝置的名稱。

VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。

(繼承來源 DispatcherObject)

適用於