Szerkesztés

Megosztás a következőn keresztül:


StylusDevice Class

Definition

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
Inheritance

Examples

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

Properties

ActiveSource

Gets the PresentationSource that reports current input for the stylus.

Captured

Gets the element that captured the stylus.

DirectlyOver

Gets the IInputElement that the pointer is positioned over.

Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Id

Gets the identifier for the stylus device.

InAir

Gets whether the tablet pen is positioned above, yet not in contact with, the digitizer.

InRange

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

Gets the TabletDevice representing the digitizer associated with the current StylusDevice.

Target

Gets the element that receives input.

Methods

Capture(IInputElement, CaptureMode)

Binds the stylus to the specified element.

Capture(IInputElement)

Binds input from the stylus to the specified element.

CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPosition(IInputElement)

Gets the position of the stylus.

GetStylusPoints(IInputElement, StylusPointDescription)

Returns a StylusPointCollection that contains StylusPoint objects collected from the stylus. Uses the specified StylusPointDescription.

GetStylusPoints(IInputElement)

Returns a StylusPointCollection that contains StylusPoint objects collected from the stylus.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Synchronize()

Synchronizes the cursor and the user interface.

ToString()

Returns the name of the stylus device.

VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Applies to