InkCollectorGestureEventArgs.Gestures Property

InkCollectorGestureEventArgs.Gestures Property

Gets an array of Gesture objects, in order of confidence, from the recognizer.

Definition

Visual Basic .NET Public ReadOnly Property Gestures As Gesture()
C# public Gesture[] Gestures { get; }
Managed C++ public: __property Gesture* get_Gestures();

Property Value

Microsoft.Ink.Gesture[]. An array of Gesture objects, in order of confidence, from the recognizer.

This property is read-only. This property has no default value.

Remarks

For descriptions of the application gestures, see the ApplicationGesture enumeration.

The Gesture event occurs when the recognizer recognizes an application gesture.

The array contains information about applications gestures, not system gestures. For more information about gestures, see Making Windows Work with a Pen.

Examples

[C#]

This C# example creates an InkCollectorGestureEventHandler that writes the Id values of possible gestures, in order of confidence, into a TextBox Leave Site, 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 += ", ";
  }
}

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates an InkCollectorGestureEventHandler that writes the Id values of possible gestures, in order of confidence, into a TextBox Leave Site, 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

See Also