Partager via


InkEditGestureEventArgs.Gestures Property

InkEditGestureEventArgs.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.

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

Examples

[C#]

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();
  }
}

[Visual Basic .NET]

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

See Also