TabletHardwareCapabilities TabletHardwareCapabilities TabletHardwareCapabilities TabletHardwareCapabilities Enum

Definition

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.

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

Fields

HardProximity HardProximity HardProximity 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 Integrated Integrated Integrated 1

Indicates the digitizer is integrated with the display.

None None None None 0

Indicates the tablet device cannot provide this information.

StylusHasPhysicalIds StylusHasPhysicalIds StylusHasPhysicalIds StylusHasPhysicalIds 8

Indicates the tablet device can uniquely identify the active stylus.

StylusMustTouch StylusMustTouch StylusMustTouch StylusMustTouch 2

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

SupportsPressure SupportsPressure SupportsPressure 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