Share via


PenDeviceInterop Klasse

Definition

Unterstützt die Möglichkeit, ein aktives System-PenDevice-Objekt über Interop zu identifizieren und nachzuverfolgen.

public ref class PenDeviceInterop abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PenDeviceInterop final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class PenDeviceInterop
Public Class PenDeviceInterop
Vererbung
Object Platform::Object IInspectable PenDeviceInterop
Attribute

Beispiele

Der folgende Code zeigt, wie sie einen PointerPoint mit einem System penDevice in Beziehung setzen:

private void PointerInputSource_PointerEntered(InputPointerSource sender, PointerEventArgs args)
{
    var penDevice = PenDeviceInterop.PenDeviceFromPointerPoint(args.CurrentPoint);
}

Methoden

FromPointerPoint(PointerPoint)

Ruft einen Verweis auf ein Stiftgerät ab, das dem angegebenen Zeiger zugeordnet ist.

Gilt für: