InkCollectorSystemGestureEventArgs.Cursor Property
Gets the Cursor object that generated the SystemGesture event.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public ReadOnly Property Cursor As Cursor
'Usage
Dim instance As InkCollectorSystemGestureEventArgs
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 SystemGesture event.
Remarks
The Microsoft.Ink.Cursor class is not to be confused with Cursor class. Microsoft.Ink.Cursor represents general information about a tablet pointing and selecting device, usually a pen, while Cursor represents the image used to paint the mouse pointer.
Example
This C# example shows a SystemGesture event handler that puts the Cursor name into a TextBox, theTextBox
.
private void theInkCollector_SystemGesture(object sender, InkCollectorSystemGestureEventArgs e)
{
theTextBox.Text = e.Cursor.ToString();
}
This Microsoft® Visual Basic® .NET example shows a SystemGesture event handler that puts the Cursor name into a TextBox, theTextBox
.
Private Sub theInkCollector_SystemGesture(ByVal sender As Object, ByVal e As InkCollectorSystemGestureEventArgs) _
Handles theInkCollector.SystemGesture
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
InkCollectorSystemGestureEventArgs Class
InkCollectorSystemGestureEventArgs Members
Microsoft.Ink Namespace
InkCollector.SystemGesture
InkCollector.Gesture