InkCollectorGestureEventArgs.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 InkCollectorGestureEventArgs
Dim value As Gesture()
value = instance.Gestures
public Gesture[] Gestures { get; }
public:
property array<Gesture^>^ Gestures {
array<Gesture^>^ get ();
}
public function get Gestures () : Gesture[]
Property Value
Type: array<Microsoft.Ink.Gesture[]
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.
Examples
This C# example creates an InkCollectorGestureEventHandler that writes the Id values of possible gestures, in order of confidence, into a TextBox, theTextBox.
private void theInkCollector_Gesture(object sender,
Microsoft.Ink.InkCollectorGestureEventArgs e)
{
for (int i = 0; i < e.Gestures.Length; i++)
{
theTextBox.Text += e.Gestures[i].Id.ToString();
if (i < e.Gestures.Length - 1)
theTextBox.Text += ", ";
}
}
This Microsoft® Visual Basic® .NET example creates an InkCollectorGestureEventHandler that writes the Id values of possible gestures, in order of confidence, into a TextBox, theTextBox.
Public Sub theInkCollector_Gesture(ByVal sender As Object, ByVal e As InkCollectorGestureEventArgs) _
Handles theInkCollector.Gesture
Dim i As Integer
For i = 0 To e.Gestures.Length - 1
theTextBox.Text += e.Gestures(i).Id.ToString()
If i < e.Gestures.Length - 1 Then
theTextBox.Text = theTextBox.Text + ", "
EndIf
Next
End Sub
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
InkCollectorGestureEventArgs Class