StylusDevice StylusDevice StylusDevice 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 ActiveSource ActiveSource ActiveSource

Gets the PresentationSource that reports current input for the stylus.

Captured Captured Captured Captured

Gets the element that captured the stylus.

DirectlyOver DirectlyOver DirectlyOver DirectlyOver

Gets the IInputElement that the pointer is positioned over.

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Id Id Id Id

Gets the identifier for the stylus device.

InAir InAir InAir InAir

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

InRange InRange InRange InRange

Gets a value that indicates whether the tablet pen is in range of the digitizer.

Inverted Inverted Inverted Inverted

Gets a value that indicates whether the secondary tip of the stylus is in use.

IsValid IsValid IsValid IsValid

Gets a value that indicates whether a stylus device is valid.

Name Name Name Name

Gets the name of the stylus.

StylusButtons StylusButtons StylusButtons StylusButtons

Gets the stylus buttons on the stylus.

TabletDevice TabletDevice TabletDevice TabletDevice

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

Target Target Target Target

Gets the element that receives input.

Methods

Capture(IInputElement) Capture(IInputElement) Capture(IInputElement) Capture(IInputElement)

Binds input from the stylus to the specified element.

Capture(IInputElement, CaptureMode) Capture(IInputElement, CaptureMode) Capture(IInputElement, CaptureMode) Capture(IInputElement, CaptureMode)

Binds the stylus to the specified element.

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPosition(IInputElement) GetPosition(IInputElement) GetPosition(IInputElement) GetPosition(IInputElement)

Gets the position of the stylus.

GetStylusPoints(IInputElement) GetStylusPoints(IInputElement) GetStylusPoints(IInputElement) GetStylusPoints(IInputElement)

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

GetStylusPoints(IInputElement, StylusPointDescription) GetStylusPoints(IInputElement, StylusPointDescription) GetStylusPoints(IInputElement, StylusPointDescription) GetStylusPoints(IInputElement, StylusPointDescription)

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

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Synchronize() Synchronize() Synchronize() Synchronize()

Synchronizes the cursor and the user interface.

ToString() ToString() ToString() ToString()

Returns the name of the stylus device.

VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Applies to