InkCollectorStrokeEventArgs.Cursor Property

InkCollectorStrokeEventArgs.Cursor Property

Gets the Cursor object that was used to create the new stroke.

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 object that was used to create the new stroke.

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 shows a Stroke event handler that puts the Cursor's name into a TextBox Leave Site, theTextBox.

private void theInkCollector_Stroke(object sender, InkCollectorStrokeEventArgs e)
{
  theTextBox.Text = e.Cursor.ToString();
}

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example shows a Stroke event handler that puts the Cursor's name into a TextBox Leave Site, theTextBox.

Private Sub theInkCollector_Stroke(ByVal sender As Object, ByVal e As InkCollectorStrokeEventArgs) _
Handles theInkCollector.Stroke
  theTextBox.Text = e.Cursor.ToString()
End Sub

See Also