共用方式為


PenDeviceInterop 類別

定義

支援透過 Interop 識別及追蹤使用中系統 PenDevice 物件的能力。

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
繼承
Object Platform::Object IInspectable PenDeviceInterop
屬性

範例

下列程式碼示範如何將 PointerPoint 與系統 PenDevice產生關聯:

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

方法

FromPointerPoint(PointerPoint)

擷取與指定指標相關聯的手寫筆裝置參考。

適用於