共用方式為


InkCollectorSystemGestureEventArgs.Id 屬性

取得「系統筆勢」的值。

命名空間:  Microsoft.Ink
組件:  Microsoft.Ink (在 Microsoft.Ink.dll 中)

語法

'宣告
Public ReadOnly Property Id As SystemGesture
'用途
Dim instance As InkCollectorSystemGestureEventArgs
Dim value As SystemGesture

value = instance.Id
public SystemGesture Id { get; }
public:
property SystemGesture Id {
    SystemGesture get ();
}
/** @property */
public SystemGesture get_Id()
public function get Id () : SystemGesture

屬性值

型別:Microsoft.Ink.SystemGesture
系統筆勢的值。

備註

ms571700.alert_note(zh-tw,VS.90).gif注意事項:

SystemGesture 物件的識別項在經過一段時間之後仍會保持不變,表示它永遠不會改變。

因為每個系統筆勢都會做為 SystemGesture 列舉型別中的值,所以該值會做為該筆勢的 ID。

範例

在這個範例中,InkCollectorSystemGestureEventHandler 執行個體會檢查傳入 InkCollectorSystemGestureEventArgs 物件的資料。如果筆墨畫布的左上角發生 DoubleTap 系統筆勢,則會清除筆墨畫布上的所有筆劃。

Private Sub mInkObject_SystemGesture(ByVal sender As Object, ByVal e As InkCollectorSystemGestureEventArgs)
    If (e.Id = SystemGesture.DoubleTap And e.Point.X <= 106 And e.Point.Y <= 106) Then
        EraseAllStrokes()
    End If
End Sub
private void mInkObject_SystemGesture(object sender, InkCollectorSystemGestureEventArgs e)
{
    if (e.Id == SystemGesture.DoubleTap && e.Point.X <= 106 && e.Point.Y <= 106)
    {
        EraseAllStrokes();
    }
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

InkCollectorSystemGestureEventArgs 類別

InkCollectorSystemGestureEventArgs 成員

Microsoft.Ink 命名空間

InkCollector.SystemGesture