InkEditGestureEventArgs.Gestures Property
Gets an array of Gesture objects, in order of confidence, from the recognizer.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public ReadOnly Property Gestures As Gesture()
'Usage
Dim instance As InkEditGestureEventArgs
Dim value As Gesture()
value = instance.Gestures
public Gesture[] Gestures { get; }
public:
property array<Gesture^>^ Gestures {
array<Gesture^>^ get ();
}
/** @property */
public Gesture[] get_Gestures ()
public function get Gestures () : Gesture[]
Not applicable.
Property Value
An array of Gesture objects, in order of confidence, from the recognizer.
Remarks
For descriptions of the application gesture, see the ApplicationGesture enumeration.
The Gesture event occurs when the recognizer recognizes an application gesture.
The array contains information about applications gestures, not system gesture. For more information about gestures, see Using Gestures.
The InkEdit control has default interest in and actions for the following gestures.
Gesture |
Action |
---|---|
Down-left, Down-left-long |
Enter |
Right |
Space |
Left |
Backspace |
Up-right, Up-right-long |
Tab |
Example
This C# example creates an InkEditGestureEventHandler that writes the Id values of possible gestures, in order of confidence, into the InkEdit control, theInkEdit
.
private void theInkEdit_Gesture(object sender,
Microsoft.Ink.InkEditGestureEventArgs e)
{
for (int i = 0; i < e.Gestures.Length; i++)
{
theInkEdit.Text += e.Gestures[i].Id.ToString();
}
}
This Microsoft® Visual Basic® .NET example creates an InkEditGestureEventHandler that writes the Id values of possible gestures, in order of confidence, into the InkEdit control, theInkEdit
.
Public Sub theInkEdit_Gesture(ByVal sender As Object, ByVal e As _
InkEditGestureEventArgs)
Dim i As Integer
For i = 0 To e.Gestures.Length - 1
theInkEdit.Text += e.Gestures(i).Id.ToString()
Next
End Sub
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkEditGestureEventArgs Class
InkEditGestureEventArgs Members
Microsoft.Ink Namespace
Gesture
Gesture.Id
InkEdit
InkEdit.Gesture