Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TabletHardwareCapabilities Enumeration
Collapse the table of content
Expand the table of content

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 enum TabletHardwareCapabilities
<object property="enumerationMemberName" .../>

Member nameDescription
HardProximityIndicates the tablet device can generate in-air packets when the stylus is in the physical detection range (proximity) of the tablet device.
IntegratedIndicates the digitizer is integrated with the display.
NoneIndicates the tablet device cannot provide this information.
StylusHasPhysicalIdsIndicates the tablet device can uniquely identify the active stylus.
StylusMustTouchIndicates the stylus must be in physical contact with the tablet device to report its position.
SupportsPressureIndicates 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
   & TabletHardwareCapabilities.SupportsPressure) ==
     TabletHardwareCapabilities.SupportsPressure)
{
    textbox1.AppendText("The tablet can detect the pressure of the teblet pen.");
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft