Export (0) Print
Expand All

InkCollectorSystemGestureEventArgs.Id Property

Gets the value of the system gesture.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

public SystemGesture Id { get; }

Property Value

Type: Microsoft.Ink.SystemGesture
The value of the system gesture.


A SystemGesture object's identifier is constant over time, meaning that it never changes.

Because each system gesture exists as a value in the SystemGesture enumeration, that value serves as the ID of that gesture.

In this example, an InkCollectorSystemGestureEventHandler instance examines data passed in the InkCollectorSystemGestureEventArgs object. If a DoubleTap system gesture has occurred in the upper left corner of the ink canvas, all of the strokes on the ink canvas are erased.

private void mInkObject_SystemGesture(object sender, InkCollectorSystemGestureEventArgs e)
    if (e.Id == SystemGesture.DoubleTap && e.Point.X <= 106 && e.Point.Y <= 106)

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0

Community Additions

© 2015 Microsoft