TabletDevice Class
.NET Framework 4.5
Represents the digitizer device of a Tablet PC.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.Input.InputDevice
System.Windows.Input.TabletDevice
System.Windows.Threading.DispatcherObject
System.Windows.Input.InputDevice
System.Windows.Input.TabletDevice
Namespace: System.Windows.Input
Assembly: PresentationCore (in PresentationCore.dll)
The TabletDevice type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ActiveSource | Gets the PresentationSource that reports current input for the tablet device. (Overrides InputDevice.ActiveSource.) |
![]() | Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) |
![]() | Id | Gets the unique identifier for the tablet device on the system. |
![]() | Name | Gets the name of the tablet device. |
![]() | ProductId | Gets the product identifier for the tablet device. |
![]() | StylusDevices | Gets the StylusDeviceCollection associated with the tablet device. |
![]() | SupportedStylusPointProperties | Gets a collection of StylusPointProperty objects that the TabletDevice supports. |
![]() | TabletHardwareCapabilities | Gets the TabletHardwareCapabilities for the tablet device. |
![]() | Target | Gets the IInputElement that provides basic input processing for the tablet device. (Overrides InputDevice.Target.) |
![]() | Type | Gets the TabletDeviceType of the tablet device. |
| Name | Description | |
|---|---|---|
![]() | CheckAccess | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns the name of the tablet device. (Overrides Object.ToString().) |
![]() | VerifyAccess | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
The following example demonstrates how to get the properties that a TabletDevice supports.
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());
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
