StylusDevice 類別

定義

表示與 Tablet PC 配合使用的 Tablet 畫筆。

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

範例

下列範例示範如何擷取默認手寫筆裝置的參考。

// Get the current stylus device
StylusDevice myStylusDevice = Stylus.CurrentStylusDevice;
' Get the current stylus device
Dim myStylusDevice As StylusDevice = Stylus.CurrentStylusDevice

屬性

ActiveSource

取得報告目前手寫筆輸入的 PresentationSource

Captured

取得捕捉手寫筆的項目。

DirectlyOver

取得指標位於其上方的 IInputElement

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObject

(繼承來源 DispatcherObject)
Id

取得手寫筆裝置的識別項。

InAir

取得值,這個值表示 Tablet 畫筆是否位於數位板上方但未與其接觸。

InRange

取得值,這個值表示 Tablet 畫筆是否位於數位板的範圍之內。

Inverted

取得值,這個值表示是否正在使用手寫筆的次要提示。

IsValid

取得值,表示手寫筆裝置是否有效。

Name

取得手寫筆的名稱。

StylusButtons

取得手寫筆上的手寫筆按鈕。

TabletDevice

取得 TabletDevice,表示與目前 StylusDevice 相關聯的數位板。

Target

取得收到輸入的項目。

方法

Capture(IInputElement)

將手寫筆輸入繫結至指定的項目。

Capture(IInputElement, CaptureMode)

將手寫筆繫結至指定的項目。

CheckAccess()

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

(繼承來源 DispatcherObject)
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetPosition(IInputElement)

取得手寫筆的位置。

GetStylusPoints(IInputElement)

傳回一個 StylusPointCollection,內含收集自手寫筆的 StylusPoint 物件。

GetStylusPoints(IInputElement, StylusPointDescription)

傳回一個 StylusPointCollection,內含收集自手寫筆的 StylusPoint 物件。 使用指定的 StylusPointDescription

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Synchronize()

同步處理游標和使用者介面。

ToString()

傳回手寫筆裝置的名稱。

VerifyAccess()

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

(繼承來源 DispatcherObject)

適用於