TabletDevice Clase

Definición

Representa el dispositivo digitalizador de un equipo tablet.

public ref class TabletDevice sealed : System::Windows::Input::InputDevice
public sealed class TabletDevice : System.Windows.Input.InputDevice
type TabletDevice = class
    inherit InputDevice
Public NotInheritable Class TabletDevice
Inherits InputDevice
Herencia

Ejemplos

En el ejemplo siguiente se muestra cómo obtener las propiedades que admite .TabletDevice

TabletDevice currentTablet = Tablet.CurrentTabletDevice;
ReadOnlyCollection<StylusPointProperty> supportedProperties = 
    currentTablet.SupportedStylusPointProperties;

StringWriter properties = new StringWriter();

foreach (StylusPointProperty property in supportedProperties)
{
    properties.WriteLine(property.ToString());
}

MessageBox.Show(properties.ToString());
Dim currentTablet As TabletDevice = Tablet.CurrentTabletDevice

Dim supportedProperties As ReadOnlyCollection(Of StylusPointProperty) _
            = currentTablet.SupportedStylusPointProperties

Dim properties As New StringWriter()

For Each supportedProperty As StylusPointProperty In supportedProperties
    properties.WriteLine(supportedProperty.ToString())
Next supportedProperty

MessageBox.Show(properties.ToString())

Propiedades

Nombre Description
ActiveSource

Obtiene el objeto que informa de la PresentationSource entrada actual para el dispositivo de tableta.

Dispatcher

Obtiene el objeto al que DispatcherDispatcherObject está asociado.

(Heredado de DispatcherObject)
Id

Obtiene el identificador único del dispositivo de tableta en el sistema.

Name

Obtiene el nombre del dispositivo de tableta.

ProductId

Obtiene el identificador de producto del dispositivo de tableta.

StylusDevices

Obtiene el StylusDeviceCollection asociado al dispositivo de tableta.

SupportedStylusPointProperties

Obtiene una colección de StylusPointProperty objetos que admite TabletDevice .

TabletHardwareCapabilities

Obtiene para TabletHardwareCapabilities el dispositivo de tableta.

Target

Obtiene el IInputElement objeto que proporciona procesamiento de entrada básico para el dispositivo de tableta.

Type

Obtiene del TabletDeviceType dispositivo de tableta.

Métodos

Nombre Description
CheckAccess()

Determina si el subproceso que llama tiene acceso a este DispatcherObject.

(Heredado de DispatcherObject)
Equals(Object)

Determina si el objeto especificado es igual al objeto actual.

(Heredado de Object)
GetHashCode()

Actúa como función hash predeterminada.

(Heredado de Object)
GetType()

Obtiene el Type de la instancia actual.

(Heredado de Object)
MemberwiseClone()

Crea una copia superficial del Objectactual.

(Heredado de Object)
ToString()

Devuelve el nombre del dispositivo de tableta.

VerifyAccess()

Exige que el subproceso de llamada tenga acceso a este DispatcherObject.

(Heredado de DispatcherObject)

Se aplica a