TabletDevice 類別

定義

表示 Tablet PC 的數位板裝置。Represents the digitizer device of a 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支援的屬性。The following example demonstrates how to get the properties that a TabletDevice supports.

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 裝置輸入的 PresentationSourceGets the PresentationSource that reports current input for the tablet device.

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(繼承來源 DispatcherObject)
Id

取得系統上 Tablet 裝置的唯一識別項。Gets the unique identifier for the tablet device on the system.

Name

取得 Tablet 裝置的名稱。Gets the name of the tablet device.

ProductId

取得 Tablet 裝置的產品識別項。Gets the product identifier for the tablet device.

StylusDevices

取得與 Tablet 裝置相關的 StylusDeviceCollectionGets the StylusDeviceCollection associated with the tablet device.

SupportedStylusPointProperties

取得 StylusPointProperty 支援的 TabletDevice 物件集合。Gets a collection of StylusPointProperty objects that the TabletDevice supports.

TabletHardwareCapabilities

取得 Tablet 裝置的 TabletHardwareCapabilitiesGets the TabletHardwareCapabilities for the tablet device.

Target

取得為 Tablet 裝置提供基本輸入處理的 IInputElementGets the IInputElement that provides basic input processing for the tablet device.

Type

取得 Tablet 裝置的 TabletDeviceTypeGets the TabletDeviceType of the tablet device.

方法

CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回 Tablet 裝置的名稱。Returns the name of the tablet device.

VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)

適用於