Share via


InkEditGestureEventArgs.Cursor Property

InkEditGestureEventArgs.Cursor Property

Gets the Cursor object that generated the Gesture event.

Definition

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

Property Value

Microsoft.Ink.Cursor. The Cursor object that generated the gesture event.

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

Remarks

The Microsoft.Ink.Cursor class is not to be confused with System.Windows.Forms.Cursor Leave Site class. Microsoft.Ink.Cursor represents general information about a tablet pointing and selecting device, usually a pen, while System.Windows.Forms.Cursor Leave Site represents the image used to paint the mouse pointer.

Examples

[C#]

This C# example demonstrates an InkEditGestureEventHandler, theInkEdit_Gesture, that displays the name of the Cursor object that generated the event.

private void theInkEdit_Gesture(object sender, Microsoft.Ink.InkEditGestureEventArgs e)
{
  MessageBox.Show(e.Cursor.ToString());
}

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example demonstrates an InkEditGestureEventHandler, theInkEdit_Gesture, that displays the name of the Cursor object that generated the event.

Public Sub theInkEdit_Gesture(ByVal sender As Object, ByVal e As InkEditGestureEventArgs)
      MessageBox.Show(e.Cursor.ToString())
End Sub

See Also