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)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[SerializableAttribute] 
[FlagsAttribute] 
public enum TabletHardwareCapabilities
/** @attribute SerializableAttribute() */ 
/** @attribute FlagsAttribute() */ 
public enum TabletHardwareCapabilities
SerializableAttribute 
FlagsAttribute 
public enum TabletHardwareCapabilities
<object property="EnumerationValue" .../>

 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.");
}

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: