InkCollectorSystemGestureEventArgs.Id Property
Gets the value of the system gesture.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public ReadOnly Property Id As SystemGesture
'Usage
Dim instance As InkCollectorSystemGestureEventArgs
Dim value As SystemGesture
value = instance.Id
public SystemGesture Id { get; }
public:
property SystemGesture Id {
SystemGesture get ();
}
public function get Id () : SystemGesture
Property Value
Type: Microsoft.Ink.SystemGesture
The value of the system gesture.
Remarks
Note
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.
Examples
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 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();
}
}
Platforms
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.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkCollectorSystemGestureEventArgs Class