TabletDevice Class

Represents the digitizer device of a Tablet PC.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public sealed class TabletDevice : InputDevice

The TabletDevice type exposes the following members.

  NameDescription
Public propertyActiveSourceGets the PresentationSource that reports current input for the tablet device. (Overrides InputDevice.ActiveSource.)
Public propertyDispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public propertyIdGets the unique identifier for the tablet device on the system.
Public propertyNameGets the name of the tablet device.
Public propertyProductIdGets the product identifier for the tablet device.
Public propertyStylusDevicesGets the StylusDeviceCollection associated with the tablet device.
Public propertySupportedStylusPointPropertiesGets a collection of StylusPointProperty objects that the TabletDevice supports.
Public propertyTabletHardwareCapabilitiesGets the TabletHardwareCapabilities for the tablet device.
Public propertyTargetGets the IInputElement that provides basic input processing for the tablet device. (Overrides InputDevice.Target.)
Public propertyTypeGets the TabletDeviceType of the tablet device.
Top

  NameDescription
Public methodCheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns the name of the tablet device. (Overrides Object.ToString().)
Public methodVerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top

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


.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft