TabletDevice TabletDevice TabletDevice TabletDevice Class

Definition

Represents the digitizer device of a Tablet PC.

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
Inheritance

Examples

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

Properties

ActiveSource ActiveSource ActiveSource ActiveSource

Gets the PresentationSource that reports current input for the tablet device.

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Id Id Id Id

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

Name Name Name Name

Gets the name of the tablet device.

ProductId ProductId ProductId ProductId

Gets the product identifier for the tablet device.

StylusDevices StylusDevices StylusDevices StylusDevices

Gets the StylusDeviceCollection associated with the tablet device.

SupportedStylusPointProperties SupportedStylusPointProperties SupportedStylusPointProperties SupportedStylusPointProperties

Gets a collection of StylusPointProperty objects that the TabletDevice supports.

TabletHardwareCapabilities TabletHardwareCapabilities TabletHardwareCapabilities TabletHardwareCapabilities

Gets the TabletHardwareCapabilities for the tablet device.

Target Target Target Target

Gets the IInputElement that provides basic input processing for the tablet device.

Type Type Type Type

Gets the TabletDeviceType of the tablet device.

Methods

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns the name of the tablet device.

VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Applies to