共用方式為


InkCollectorSystemGestureEventArgs.Point 屬性

取得 Point 結構,這個結構表示「系統筆勢」的位置。

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

語法

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

value = instance.Point
public Point Point { get; }
public:
property Point Point {
    Point get ();
}
/** @property */
public Point get_Point()
public function get Point () : Point

屬性值

型別:System.Drawing.Point
系統筆勢的位置。

範例

在這個範例中,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