InkCollectorCursorButtonUpEventArgs.Cursor Property
Gets the Cursor object that generated the CursorButtonUp event.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public ReadOnly Property Cursor As Cursor
'Usage
Dim instance As InkCollectorCursorButtonUpEventArgs
Dim value As Cursor
value = instance.Cursor
public Cursor Cursor { get; }
public:
property Cursor^ Cursor {
Cursor^ get ();
}
/** @property */
public Cursor get_Cursor ()
public function get Cursor () : Cursor
Not applicable.
Property Value
The object that generated the CursorButtonUp event.
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.
Example
This C# example shows a CursorButtonUp event handler that puts the Cursor name into a TextBox, theTextBox
.
private void theInkCollector_CursorButtonUp(object sender, InkCollectorCursorButtonUpEventArgs e)
{
theTextBox.Text = e.Cursor.ToString();
}
This Microsoft® Visual Basic® .NET example shows a CursorButtonUp event handler that puts the Cursor 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
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkCollectorCursorButtonUpEventArgs Class
InkCollectorCursorButtonUpEventArgs Members
Microsoft.Ink Namespace
InkCollector.CursorButtonUp
InkCollector.CursorButtonDown