Compartilhar via


InkEditGestureEventArgs.Strokes Property

InkEditGestureEventArgs.Strokes Property

Gets the Strokes collection that the recognizer returned as the application gesture.

Definition

Visual Basic .NET Public ReadOnly Property Strokes As Strokes
C# public Strokes Strokes { get; }
Managed C++ public: __property Strokes* get_Strokes();

Property Value

Microsoft.Ink.Strokes. The Strokes collection that the recognizer retuirned as the application gesture.

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

Examples

[C#]

This C# example creates an InkEditGestureEventHandler event, theInkEdit_Gesture, that gets the Id values of of the strokes that make up this gesture and then writes the Id values into the InkEdit control, theInkEdit.

private void theInkEdit_Gesture(object sender,
            Microsoft.Ink.InkEditGestureEventArgs e)
{
  foreach (Stroke theStroke in e.Strokes)
  {
    theInkEdit.Text += theStroke.Id.ToString();
  }
}

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates an InkEditGestureEventHandler event, theInkEdit_Gesture, that gets the Id values of of the strokes that make up this gesture and then writes the Id values into the InkEdit control, theInkEdit.

Public Sub theInkEdit_Gesture(ByVal sender As Object, ByVal e As _
    InkEditGestureEventArgs)
  Dim theStroke As Stroke
  For Each theStroke In e.Strokes
    theInkEdit.Text += theStroke.Id.ToString()
  Next
End Sub

See Also