TabletDevice Klass

Definition

Representerar digitaliserarenheten på en Surfplatta.

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
Arv

Exempel

I följande exempel visas hur du hämtar de egenskaper som en TabletDevice har stöd för.

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

Egenskaper

Name Description
ActiveSource

Hämtar den PresentationSource som rapporterar aktuella indata för surfplattans enhet.

Dispatcher

Hämtar det Dispatcher som DispatcherObject är associerat med.

(Ärvd från DispatcherObject)
Id

Hämtar den unika identifieraren för surfplattans enhet i systemet.

Name

Hämtar namnet på surfplattans enhet.

ProductId

Hämtar produktidentifieraren för surfplattan.

StylusDevices

Hämtar den StylusDeviceCollection associerade med surfplattan.

SupportedStylusPointProperties

Hämtar en samling StylusPointProperty objekt som TabletDevice stöds.

TabletHardwareCapabilities

TabletHardwareCapabilities Hämtar enheten för surfplattan.

Target

Hämtar den IInputElement som tillhandahåller grundläggande indatabearbetning för surfplattans enhet.

Type

TabletDeviceType Hämtar surfplattans enhet.

Metoder

Name Description
CheckAccess()

Avgör om den anropande tråden har åtkomst till den här DispatcherObject.

(Ärvd från DispatcherObject)
Equals(Object)

Avgör om det angivna objektet är lika med det aktuella objektet.

(Ärvd från Object)
GetHashCode()

Fungerar som standard-hash-funktion.

(Ärvd från Object)
GetType()

Hämtar den aktuella instansen Type .

(Ärvd från Object)
MemberwiseClone()

Skapar en ytlig kopia av den aktuella Object.

(Ärvd från Object)
ToString()

Returnerar namnet på surfplattans enhet.

VerifyAccess()

Framtvingar att den anropande tråden har åtkomst till den här DispatcherObject.

(Ärvd från DispatcherObject)

Gäller för