Compartir a través de


InkCollectorCursorInRangeEventArgs.Cursor Property

Gets the Cursor object that generated the CursorInRange event.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public ReadOnly Property Cursor As Cursor
'Usage
Dim instance As InkCollectorCursorInRangeEventArgs
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 CursorInRange 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 CursorInRange event handler that puts the Cursor name into a TextBox, theTextBox.

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

This Microsoft® Visual Basic® .NET example shows a CursorInRange event handler that puts the Cursor name into a TextBox, theTextBox.

Private Sub theInkCollector_CursorInRange(ByVal sender As Object, ByVal e As InkCollectorCursorInRangeEventArgs) _
Handles theInkCollector.CursorInRange
  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

InkCollectorCursorInRangeEventArgs Class
InkCollectorCursorInRangeEventArgs Members
Microsoft.Ink Namespace
InkCollector.CursorInRange
InkCollector.CursorOutOfRange