Sdílet prostřednictvím


InkCollectorNewPacketsEventArgs.Cursor Property

Gets the Cursor object that was used to create the Stroke object that generated the NewPackets event.

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

Syntax

'Declaration
Public ReadOnly Property Cursor As Cursor
'Usage
Dim instance As InkCollectorNewPacketsEventArgs 
Dim value As Cursor 

value = instance.Cursor
public Cursor Cursor { get; }
public:
property Cursor^ Cursor {
    Cursor^ get ();
}
public function get Cursor () : Cursor

Property Value

Type: Microsoft.Ink.Cursor
The object that was used to create the Stroke object that generated the NewPackets 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.

Examples

This C# example shows a NewPackets event handler that puts the Cursor name into a TextBox, theTextBox.

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

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

Private Sub theInkCollector_NewPackets(ByVal sender As Object, ByVal e As InkCollectorNewPacketsEventArgs) _
Handles theInkCollector.NewPackets
  theTextBox.Text = e.Cursor.ToString()
End Sub

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkCollectorNewPacketsEventArgs Class

InkCollectorNewPacketsEventArgs Members

Microsoft.Ink Namespace

InkCollector.NewPackets