TabletDevice Classe

Definição

Representa o dispositivo digitalizador de um Tablet PC.

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
Herança

Exemplos

O exemplo seguinte demonstra como obter as propriedades que um TabletDevice suporta.

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())

Propriedades

Name Description
ActiveSource

Recebe o PresentationSource que reporta a entrada atual do dispositivo tablet.

Dispatcher

Percebe o Dispatcher que isto DispatcherObject está associado.

(Herdado de DispatcherObject)
Id

Obtém o identificador único do dispositivo tablet no sistema.

Name

Recebe o nome do tablet.

ProductId

Obtém o identificador do produto do tablet.

StylusDevices

Fica com o StylusDeviceCollection tablet associado.

SupportedStylusPointProperties

Recebe uma coleção de StylusPointProperty objetos que suporta TabletDevice .

TabletHardwareCapabilities

Obtém-nos TabletHardwareCapabilities para o tablet.

Target

Obtém o IInputElement que fornece processamento básico de entrada para o tablet.

Type

Tira TabletDeviceType o tablet do dispositivo.

Métodos

Name Description
CheckAccess()

Determina se o thread que chama tem acesso a este DispatcherObject.

(Herdado de DispatcherObject)
Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.

(Herdado de Object)
GetHashCode()

Serve como função de hash predefinida.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do atual Object.

(Herdado de Object)
ToString()

Devolve o nome do tablet.

VerifyAccess()

Faz cumprir que o thread que chama tem acesso a este DispatcherObject.

(Herdado de DispatcherObject)

Aplica-se a