StylusDevice Klasse
Definition
Stellt einen Tablettstift dar, der mit einem Tablet PC verwendet wird.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
- Vererbung
Beispiele
Im folgenden Beispiel wird veranschaulicht, wie ein Verweis auf das standardmäßige Tablettstiftgerät abgerufen wird.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
Eigenschaften
ActiveSource |
Ruft die PresentationSource ab, die die aktuelle Eingabe für den Tablettstift meldet.Gets the PresentationSource that reports current input for the stylus. |
Captured |
Ruft das Element ab, das den Tablettstift erfasst hat.Gets the element that captured the stylus. |
DirectlyOver |
Ruft das IInputElement ab, über dem sich der Zeiger befindet.Gets the IInputElement that the pointer is positioned over. |
Dispatcher |
Ruft den Dispatcher ab, der diesem DispatcherObject zugeordnet ist.Gets the Dispatcher this DispatcherObject is associated with. (Geerbt von DispatcherObject) |
Id |
Ruft den Bezeichner für das Tablettstiftgerät ab.Gets the identifier for the stylus device. |
InAir |
Ruft ab, ob sich der Tablettstift über dem Digitizer befindet, diesen jedoch nicht berührt.Gets whether the tablet pen is positioned above, yet not in contact with, the digitizer. |
InRange |
Ruft einen Wert ab, der angibt, ob sich der Tablettstift im Digitizerbereich befindet.Gets a value that indicates whether the tablet pen is in range of the digitizer. |
Inverted |
Ruft einen Wert ab, der angibt, ob die zweite Spitze des Tablettstifts verwendet wird.Gets a value that indicates whether the secondary tip of the stylus is in use. |
IsValid |
Ruft einen Wert ab, der angibt, ob ein Tablettstiftgerät gültig ist.Gets a value that indicates whether a stylus device is valid. |
Name |
Ruft den Namen des Tablettstifts ab.Gets the name of the stylus. |
StylusButtons |
Ruft die Tablettstiftschaltflächen des Tablettstifts ab.Gets the stylus buttons on the stylus. |
TabletDevice |
Ruft das TabletDevice ab, das den Digitizer darstellt, der dem aktuellen StylusDevice zugeordnet ist.Gets the TabletDevice representing the digitizer associated with the current StylusDevice. |
Target |
Ruft das Element ab, das die Eingaben empfängt.Gets the element that receives input. |
Methoden
Capture(IInputElement) |
Bindet die Eingabe des Tablettstifts an das angegebene Element.Binds input from the stylus to the specified element. |
Capture(IInputElement, CaptureMode) |
Bindet den Tablettstift an das angegebene Element.Binds the stylus to the specified element. |
CheckAccess() |
Bestimmt, ob der aufrufende Thread auf dieses DispatcherObject zugreifen kann.Determines whether the calling thread has access to this DispatcherObject. (Geerbt von DispatcherObject) |
Equals(Object) |
Ermittelt, ob das angegebene Objekt und das aktuelle Objekt gleich sind.Determines whether the specified object is equal to the current object. (Geerbt von Object) |
GetHashCode() |
Dient als die Standard-HashfunktionServes as the default hash function. (Geerbt von Object) |
GetPosition(IInputElement) |
Ruft die Position des Tablettstifts ab.Gets the position of the stylus. |
GetStylusPoints(IInputElement) |
Gibt eine StylusPointCollection zurück, die die vom Tablettstift erfassten StylusPoint-Objekte enthält.Returns a StylusPointCollection that contains StylusPoint objects collected from the stylus. |
GetStylusPoints(IInputElement, StylusPointDescription) |
Gibt eine StylusPointCollection zurück, die die vom Tablettstift erfassten StylusPoint-Objekte enthält.Returns a StylusPointCollection that contains StylusPoint objects collected from the stylus. Verwendet die angegebene StylusPointDescription.Uses the specified StylusPointDescription. |
GetType() |
Ruft den Type der aktuellen Instanz ab.Gets the Type of the current instance. (Geerbt von Object) |
MemberwiseClone() |
Erstellt eine flache Kopie des aktuellen Object.Creates a shallow copy of the current Object. (Geerbt von Object) |
Synchronize() |
Synchronisiert den Cursor und die Benutzeroberfläche.Synchronizes the cursor and the user interface. |
ToString() |
Gibt den Namen des Tablettstiftgeräts zurück.Returns the name of the stylus device. |
VerifyAccess() |
Erzwingt, dass der aufrufende Thread auf dieses DispatcherObject zugreifen kann.Enforces that the calling thread has access to this DispatcherObject. (Geerbt von DispatcherObject) |