StylusDevice 類別

定義

表示與 Tablet PC 配合使用的 Tablet 畫筆。Represents a tablet pen used with a Tablet PC.

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
繼承

範例

下列範例示範如何抓取預設手寫筆裝置的參考。The following example demonstrates how to retrieve a reference to the default stylus device.

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

屬性

ActiveSource

取得報告目前手寫筆輸入的 PresentationSourceGets the PresentationSource that reports current input for the stylus.

Captured

取得捕捉手寫筆的項目。Gets the element that captured the stylus.

DirectlyOver

取得指標位於其上方的 IInputElementGets the IInputElement that the pointer is positioned over.

Dispatcher

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

(繼承來源 DispatcherObject)
Id

取得手寫筆裝置的識別項。Gets the identifier for the stylus device.

InAir

取得值,這個值表示 Tablet 畫筆是否位於數位板上方但未與其接觸。Gets whether the tablet pen is positioned above, yet not in contact with, the digitizer.

InRange

取得值,這個值表示 Tablet 畫筆是否位於數位板的範圍之內。Gets a value that indicates whether the tablet pen is in range of the digitizer.

Inverted

取得值,這個值表示是否正在使用手寫筆的次要提示。Gets a value that indicates whether the secondary tip of the stylus is in use.

IsValid

取得值,表示手寫筆裝置是否有效。Gets a value that indicates whether a stylus device is valid.

Name

取得手寫筆的名稱。Gets the name of the stylus.

StylusButtons

取得手寫筆上的手寫筆按鈕。Gets the stylus buttons on the stylus.

TabletDevice

取得 TabletDevice,表示與目前 StylusDevice 相關聯的數位板。Gets the TabletDevice representing the digitizer associated with the current StylusDevice.

Target

取得收到輸入的項目。Gets the element that receives input.

方法

Capture(IInputElement)

將手寫筆輸入繫結至指定的項目。Binds input from the stylus to the specified element.

Capture(IInputElement, CaptureMode)

將手寫筆繫結至指定的項目。Binds the stylus to the specified element.

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)
GetPosition(IInputElement)

取得手寫筆的位置。Gets the position of the stylus.

GetStylusPoints(IInputElement)

傳回一個 StylusPointCollection,內含收集自手寫筆的 StylusPoint 物件。Returns a StylusPointCollection that contains StylusPoint objects collected from the stylus.

GetStylusPoints(IInputElement, StylusPointDescription)

傳回一個 StylusPointCollection,內含收集自手寫筆的 StylusPoint 物件。Returns a StylusPointCollection that contains StylusPoint objects collected from the stylus. 使用指定的 StylusPointDescriptionUses the specified StylusPointDescription.

GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
Synchronize()

同步處理游標和使用者介面。Synchronizes the cursor and the user interface.

ToString()

傳回手寫筆裝置的名稱。Returns the name of the stylus device.

VerifyAccess()

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

(繼承來源 DispatcherObject)

適用於