다음을 통해 공유


InkEditGestureEventArgs.Cursor Property

Gets the Cursor object that generated the Gesture event.

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

Syntax

'Declaration
Public ReadOnly Property Cursor As Cursor
'Usage
Dim instance As InkEditGestureEventArgs
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 Cursor object that generated the gesture 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 demonstrates an InkEditGestureEventHandler, theInkEdit_Gesture, that displays the name of the Cursor object that generated the event.

private void theInkEdit_Gesture(object sender, Microsoft.Ink.InkEditGestureEventArgs e)
{
  MessageBox.Show(e.Cursor.ToString());
}

This Microsoft® Visual Basic® .NET example demonstrates an InkEditGestureEventHandler, theInkEdit_Gesture, that displays the name of the Cursor object that generated the event.

Public Sub theInkEdit_Gesture(ByVal sender As Object, ByVal e As InkEditGestureEventArgs)
      MessageBox.Show(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

InkEditGestureEventArgs Class
InkEditGestureEventArgs Members
Microsoft.Ink Namespace
Cursor
Gesture
InkEdit
InkEditGestureEventHandler