Compartir a través de


Stroke.GetPacketData Method ()

Returns the packet data for all packets in the Stroke object.

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

Syntax

'Declaration
Public Function GetPacketData As Integer()
'Usage
Dim instance As Stroke
Dim returnValue As Integer()

returnValue = instance.GetPacketData
public int[] GetPacketData ()
public:
array<int>^ GetPacketData ()
public int[] GetPacketData ()
public function GetPacketData () : int[]
Not applicable.

Return Value

Returns a signed 32-bit integer array containing the packet data for the requested points in the Stroke object. The array contains the data for the first point, then the data for the second point, and so on.

Remarks

To retrieve the description of the packet data, use the Stroke object's PacketDescription property. This property returns an array of globally unique identifiers (GUIDs) that indicate which property values are returned by the GetPacketData method for each point. The PacketProperty structure contains the available packet property GUIDs.

Example

This C# example gets the packet data for all points in the Stroke object, theStroke.

int[] thePacketData = theStroke.GetPacketData();

This Microsoft® Visual Basic® .NET example gets the packet data for all points in the Stroke object, theStroke.

Dim thePacketData() As Integer = theStroke.GetPacketData()

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

Stroke Class
Stroke Members
Microsoft.Ink Namespace
Stroke.GetPacketDescriptionPropertyMetrics
Stroke.PacketCount
Stroke.PacketDescription
Stroke.PacketSize
Microsoft.Ink.Stroke.SetPacketValuesByProperty