TabletHardwareCapabilities Enumeration

 

Defines values that specify the hardware capabilities of a tablet device, including desktop digitizers and mice.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

<SerializableAttribute>
<FlagsAttribute>
Public Enumeration TabletHardwareCapabilities

Member nameDescription
HardProximity

Indicates the tablet device can generate in-air packets when the stylus is in the physical detection range (proximity) of the tablet device.

Integrated

Indicates the digitizer is integrated with the display.

None

Indicates the tablet device cannot provide this information.

StylusHasPhysicalIds

Indicates the tablet device can uniquely identify the active stylus.

StylusMustTouch

Indicates the stylus must be in physical contact with the tablet device to report its position.

SupportsPressure

Indicates that the tablet device can detect the amount of pressure the user applies when using the stylus.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

The following example demonstrates how to determine the hardware capabilities of a tablet device.

If ((Tablet.CurrentTabletDevice.TabletHardwareCapabilities And _
     TabletHardwareCapabilities.SupportsPressure) = _
     TabletHardwareCapabilities.SupportsPressure) Then

    textbox1.AppendText("The tablet can detect the pressure of the teblet pen.")
End If

.NET Framework
Available since 3.0
Return to top
Show: