Share via


HandwritingView.InputDeviceTypes 屬性

定義

取得或設定 由 HandwritingView 收集輸入資料的輸入裝置類型,以建構和轉譯 InkStroke。 預設值為 Pen

public:
 property CoreInputDeviceTypes InputDeviceTypes { CoreInputDeviceTypes get(); void set(CoreInputDeviceTypes value); };
CoreInputDeviceTypes InputDeviceTypes();

void InputDeviceTypes(CoreInputDeviceTypes value);
public CoreInputDeviceTypes InputDeviceTypes { get; set; }
var coreInputDeviceTypes = handwritingView.inputDeviceTypes;
handwritingView.inputDeviceTypes = coreInputDeviceTypes;
Public Property InputDeviceTypes As CoreInputDeviceTypes

屬性值

輸入裝置類型。

Windows 需求

裝置系列
Windows 10, version 2104 (已於 10.0.20348.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v12.0 引進)

範例

在這裡,我們會指定所有支援的輸入裝置 (CoreInputDeviceTypes 的資料,) 由 HandwritingView 收集,並當做筆跡輸入進行處理。

handwritingView.InputDeviceTypes =
  Windows.UI.Core.CoreInputDeviceTypes.Mouse |
  Windows.UI.Core.CoreInputDeviceTypes.Pen |
  Windows.UI.Core.CoreInputDeviceTypes.Touch;

適用於