Aracılığıyla paylaş


PenDevice Class

Definition

Supports the ability to identify and track connected pen devices.

public ref class PenDevice sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PenDevice final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PenDevice
Public NotInheritable Class PenDevice
Inheritance
Object Platform::Object IInspectable PenDevice
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Properties

PenId

Gets the unique identifier of the digital pen represented by the PenDevice object.

SimpleHapticsController

Gets a single haptic input device that can be used to enumerate the haptic waveforms supported by the associated PenDevice and trigger a specific haptic response.

Methods

GetFromPointerId(UInt32)

Obtains a PenDevice object associated with the specified pointer, if available.

Applies to