TabletDevice Class
TOC
Collapse the table of content
Expand the table of content

TabletDevice Class

 

Represents the digitizer device of a Tablet PC.

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


public sealed class TabletDevice : InputDevice

NameDescription
System_CAPS_pubpropertyActiveSource

Gets the PresentationSource that reports current input for the tablet device.(Overrides InputDevice.ActiveSource.)

System_CAPS_pubpropertyDispatcher

Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)

System_CAPS_pubpropertyId

Gets the unique identifier for the tablet device on the system.

System_CAPS_pubpropertyName

Gets the name of the tablet device.

System_CAPS_pubpropertyProductId

Gets the product identifier for the tablet device.

System_CAPS_pubpropertyStylusDevices

Gets the StylusDeviceCollection associated with the tablet device.

System_CAPS_pubpropertySupportedStylusPointProperties

Gets a collection of StylusPointProperty objects that the TabletDevice supports.

System_CAPS_pubpropertyTabletHardwareCapabilities

Gets the TabletHardwareCapabilities for the tablet device.

System_CAPS_pubpropertyTarget

Gets the IInputElement that provides basic input processing for the tablet device.(Overrides InputDevice.Target.)

System_CAPS_pubpropertyType

Gets the TabletDeviceType of the tablet device.

NameDescription
System_CAPS_pubmethodCheckAccess()

Determines whether the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the name of the tablet device.(Overrides Object.ToString().)

System_CAPS_pubmethodVerifyAccess()

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

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft