InkCollectorCursorButtonUpEventArgs.Cursor Property
InkCollectorCursorButtonUpEventArgs.Cursor Property |
Gets the Cursor object that generated the CursorButtonUp 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 object that generated the CursorButtonUp 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 class. Microsoft.Ink.Cursor represents general information about a tablet pointing and selecting device, usually a pen, while System.Windows.Forms.Cursor represents the image used to paint the mouse pointer.
Examples
[C#]
This C# example shows a CursorButtonUp event handler that puts the Cursor's name into a TextBox , theTextBox.
private void theInkCollector_CursorButtonUp(object sender, InkCollectorCursorButtonUpEventArgs e) { theTextBox.Text = e.Cursor.ToString(); }
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example shows a CursorButtonUp event handler that puts the Cursor's name into a TextBox , theTextBox.
Private Sub theInkCollector_CursorButtonUp(ByVal sender As Object, ByVal e As InkCollectorCursorButtonUpEventArgs) _ Handles theInkCollector.CursorButtonUp theTextBox.Text = e.Cursor.ToString() End Sub
See Also