StylusDevice Clase
Definición
Representa un lápiz que se utiliza con un Tablet PC.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
- Herencia
Ejemplos
En el ejemplo siguiente se muestra cómo recuperar una referencia al dispositivo de lápiz óptico predeterminado.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
Propiedades
ActiveSource |
Obtiene la instancia de PresentationSource que informa de la entrada actual del lápiz óptico.Gets the PresentationSource that reports current input for the stylus. |
Captured |
Obtiene el elemento que capturó el lápiz.Gets the element that captured the stylus. |
DirectlyOver |
Obtiene el objeto IInputElement sobre el que está situado el puntero.Gets the IInputElement that the pointer is positioned over. |
Dispatcher |
Obtiene el objeto Dispatcher al que está asociado DispatcherObject.Gets the Dispatcher this DispatcherObject is associated with. (Heredado de DispatcherObject) |
Id |
Obtiene el identificador del dispositivo de lápiz.Gets the identifier for the stylus device. |
InAir |
Obtiene un valor que indica si el lápiz de Tablet PC se ha situado sobre el digitalizador sin llegar a tocarlo.Gets whether the tablet pen is positioned above, yet not in contact with, the digitizer. |
InRange |
Obtiene un valor que indica si el lápiz de Tablet PC está bastante cerca del digitalizador.Gets a value that indicates whether the tablet pen is in range of the digitizer. |
Inverted |
Obtiene un valor que indica si la punta secundaria del lápiz se está utilizando.Gets a value that indicates whether the secondary tip of the stylus is in use. |
IsValid |
Obtiene un valor que indica si el dispositivo de lápiz es válido.Gets a value that indicates whether a stylus device is valid. |
Name |
Obtiene el nombre del lápiz.Gets the name of the stylus. |
StylusButtons |
Obtiene los botones del lápiz.Gets the stylus buttons on the stylus. |
TabletDevice |
Obtiene el objeto TabletDevice que representa el digitalizador asociado al objeto StylusDevice actual.Gets the TabletDevice representing the digitizer associated with the current StylusDevice. |
Target |
Obtiene el elemento que recibe la entrada.Gets the element that receives input. |
Métodos
Capture(IInputElement) |
Enlaza la entrada del lápiz óptico con el elemento especificado.Binds input from the stylus to the specified element. |
Capture(IInputElement, CaptureMode) |
Enlaza el lápiz óptico con el elemento especificado.Binds the stylus to the specified element. |
CheckAccess() |
Determina si el subproceso de la llamada tiene acceso a DispatcherObject.Determines whether the calling thread has access to this DispatcherObject. (Heredado de DispatcherObject) |
Equals(Object) |
Determina si el objeto especificado es igual que el objeto actual.Determines whether the specified object is equal to the current object. (Heredado de Object) |
GetHashCode() |
Sirve como la función hash predeterminada.Serves as the default hash function. (Heredado de Object) |
GetPosition(IInputElement) |
Obtiene la posición del lápiz.Gets the position of the stylus. |
GetStylusPoints(IInputElement) |
Devuelve un objeto StylusPointCollection que contiene objetos StylusPoint recopilados a partir del lápiz óptico.Returns a StylusPointCollection that contains StylusPoint objects collected from the stylus. |
GetStylusPoints(IInputElement, StylusPointDescription) |
Devuelve un objeto StylusPointCollection que contiene objetos StylusPoint recopilados a partir del lápiz óptico.Returns a StylusPointCollection that contains StylusPoint objects collected from the stylus. Utiliza el objeto StylusPointDescription especificado.Uses the specified StylusPointDescription. |
GetType() |
Obtiene el Type de la instancia actual.Gets the Type of the current instance. (Heredado de Object) |
MemberwiseClone() |
Crea una copia superficial del Object actual.Creates a shallow copy of the current Object. (Heredado de Object) |
Synchronize() |
Sincroniza el cursor y la interfaz de usuario.Synchronizes the cursor and the user interface. |
ToString() |
Devuelve el nombre del dispositivo de lápiz.Returns the name of the stylus device. |
VerifyAccess() |
Exige que el subproceso de la llamada tenga acceso a DispatcherObject.Enforces that the calling thread has access to this DispatcherObject. (Heredado de DispatcherObject) |