InkCollectorStrokeEventArgs.Cursor Property
Gets the Cursor object that was used to create the new stroke.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public ReadOnly Property Cursor As Cursor
'Usage
Dim instance As InkCollectorStrokeEventArgs
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 was used to create the new stroke.
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 Stroke event handler that puts the Cursor name into a TextBox, theTextBox
.
private void theInkCollector_Stroke(object sender, InkCollectorStrokeEventArgs e)
{
theTextBox.Text = e.Cursor.ToString();
}
This Microsoft® Visual Basic® .NET example shows a Stroke event handler that puts the Cursor name into a TextBox, theTextBox
.
Private Sub theInkCollector_Stroke(ByVal sender As Object, ByVal e As InkCollectorStrokeEventArgs) _
Handles theInkCollector.Stroke
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
InkCollectorStrokeEventArgs Class
InkCollectorStrokeEventArgs Members
Microsoft.Ink Namespace
InkCollector.Stroke