TabletDevice Classe

Définition

Représente l’appareil du numériseur d’un PC tablette.

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
Héritage

Exemples

L’exemple suivant montre comment obtenir les propriétés prises en charge par un TabletDevice support.

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

Propriétés

Nom Description
ActiveSource

Obtient l’entrée PresentationSource actuelle pour l’appareil tablette.

Dispatcher

Obtient ce Dispatcher qui DispatcherObject est associé.

(Hérité de DispatcherObject)
Id

Obtient l’identificateur unique de l’appareil tablette sur le système.

Name

Obtient le nom de l’appareil tablette.

ProductId

Obtient l’identificateur de produit pour l’appareil tablette.

StylusDevices

Obtient l’associé StylusDeviceCollection à l’appareil tablette.

SupportedStylusPointProperties

Obtient une collection d’objets StylusPointProperty pris TabletDevice en charge.

TabletHardwareCapabilities

Obtient l’appareil TabletHardwareCapabilities tablette.

Target

Obtient le IInputElement traitement d’entrée de base pour l’appareil tablette.

Type

Obtient l’appareil TabletDeviceType tablette.

Méthodes

Nom Description
CheckAccess()

Détermine si le thread appelant a accès à ce DispatcherObjectfichier .

(Hérité de DispatcherObject)
Equals(Object)

Détermine si l’objet spécifié est égal à l’objet actuel.

(Hérité de Object)
GetHashCode()

Sert de fonction de hachage par défaut.

(Hérité de Object)
GetType()

Obtient la Type de l’instance actuelle.

(Hérité de Object)
MemberwiseClone()

Crée une copie superficielle du Objectactuel.

(Hérité de Object)
ToString()

Retourne le nom de l’appareil tablette.

VerifyAccess()

Applique que le thread appelant a accès à ce DispatcherObjectfichier .

(Hérité de DispatcherObject)

S’applique à