TabletHardwareCapabilities Enum

Definition

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

This enumeration supports a bitwise combination of its member values.

public enum class TabletHardwareCapabilities
[System.Flags]
[System.Serializable]
public enum TabletHardwareCapabilities
[System.Flags]
public enum TabletHardwareCapabilities
[<System.Flags>]
[<System.Serializable>]
type TabletHardwareCapabilities = 
[<System.Flags>]
type TabletHardwareCapabilities = 
Public Enum TabletHardwareCapabilities
Inheritance
TabletHardwareCapabilities
Attributes

Fields

HardProximity 4

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

Integrated 1

Indicates the digitizer is integrated with the display.

None 0

Indicates the tablet device cannot provide this information.

StylusHasPhysicalIds 8

Indicates the tablet device can uniquely identify the active stylus.

StylusMustTouch 2

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

SupportsPressure 1073741824

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

Examples

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.");
}
If ((Tablet.CurrentTabletDevice.TabletHardwareCapabilities And _
     TabletHardwareCapabilities.SupportsPressure) = _
     TabletHardwareCapabilities.SupportsPressure) Then

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

Remarks

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

Applies to