TabletDevice Kelas

Definisi

Mewakili perangkat digitizer PC 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
Warisan

Contoh

Contoh berikut menunjukkan cara mendapatkan properti yang TabletDevice didukung.

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

Properti

ActiveSource

PresentationSource Mendapatkan yang melaporkan input saat ini untuk perangkat tablet.

Dispatcher

Mendapatkan ini DispatcherDispatcherObject dikaitkan dengan.

(Diperoleh dari DispatcherObject)
Id

Mendapatkan pengidentifikasi unik untuk perangkat tablet pada sistem.

Name

Mendapatkan nama perangkat tablet.

ProductId

Mendapatkan pengidentifikasi produk untuk perangkat tablet.

StylusDevices

Mendapatkan yang StylusDeviceCollection terkait dengan perangkat tablet.

SupportedStylusPointProperties

Mendapatkan kumpulan StylusPointProperty objek yang didukung TabletDevice .

TabletHardwareCapabilities

TabletHardwareCapabilities Mendapatkan untuk perangkat tablet.

Target

IInputElement Mendapatkan yang menyediakan pemrosesan input dasar untuk perangkat tablet.

Type

TabletDeviceType Mendapatkan perangkat tablet.

Metode

CheckAccess()

Menentukan apakah utas panggilan memiliki akses ke ini DispatcherObject.

(Diperoleh dari DispatcherObject)
Equals(Object)

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetHashCode()

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetType()

Mendapatkan instans Type saat ini.

(Diperoleh dari Object)
MemberwiseClone()

Membuat salinan dangkal dari yang saat ini Object.

(Diperoleh dari Object)
ToString()

Mengembalikan nama perangkat tablet.

VerifyAccess()

Memberlakukan bahwa utas panggilan memiliki akses ke ini DispatcherObject.

(Diperoleh dari DispatcherObject)

Berlaku untuk