TabletDevice Classe

Definizione

Rappresenta il dispositivo digitalizzatore di un 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
Ereditarietà

Esempio

Nell'esempio seguente viene illustrato come ottenere le proprietà supportate da un oggetto 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())

Proprietà

Nome Descrizione
ActiveSource

Ottiene l'oggetto che segnala l'input PresentationSource corrente per il dispositivo tablet.

Dispatcher

Ottiene l'oggetto DispatcherDispatcherObject a cui è associato.

(Ereditato da DispatcherObject)
Id

Ottiene l'identificatore univoco per il dispositivo tablet nel sistema.

Name

Ottiene il nome del dispositivo tablet.

ProductId

Ottiene l'identificatore del prodotto per il dispositivo tablet.

StylusDevices

Ottiene l'oggetto StylusDeviceCollection associato al dispositivo tablet.

SupportedStylusPointProperties

Ottiene una raccolta di StylusPointProperty oggetti supportati dall'oggetto TabletDevice .

TabletHardwareCapabilities

Ottiene l'oggetto TabletHardwareCapabilities per il dispositivo tablet.

Target

Ottiene l'oggetto che fornisce l'elaborazione IInputElement di input di base per il dispositivo tablet.

Type

Ottiene l'oggetto TabletDeviceType del dispositivo tablet.

Metodi

Nome Descrizione
CheckAccess()

Determina se il thread chiamante ha accesso a questo DispatcherObjectoggetto .

(Ereditato da DispatcherObject)
Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.

(Ereditato da Object)
GetHashCode()

Funge da funzione hash predefinita.

(Ereditato da Object)
GetType()

Ottiene il Type dell'istanza corrente.

(Ereditato da Object)
MemberwiseClone()

Crea una copia superficiale del Objectcorrente.

(Ereditato da Object)
ToString()

Restituisce il nome del dispositivo tablet.

VerifyAccess()

Impone che il thread chiamante abbia accesso a questo DispatcherObjectoggetto .

(Ereditato da DispatcherObject)

Si applica a