Stroke.GetPacketData Method (Int32)
Returns the packet data for one packet, at a specified index, within the Stroke object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Function GetPacketData ( _
index As Integer _
) As Integer()
'Usage
Dim instance As Stroke
Dim index As Integer
Dim returnValue As Integer()
returnValue = instance.GetPacketData(index)
public int[] GetPacketData(
int index
)
public:
array<int>^ GetPacketData(
int index
)
public function GetPacketData(
index : int
) : int[]
Parameters
index
Type: System.Int32The starting point of the zero-based index to a packet within the stroke.
Return Value
Type: array<System.Int32[]
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.
Examples
This C# example gets the packet data for the points in the Stroke object, theStroke, starting at the second point.
int[] thePacketData = theStroke.GetPacketData(1);
This Microsoft Visual Basic .NET example gets the packet data for the points in the Stroke object, theStroke, starting at the second point.
Dim thePacketData() As Integer = theStroke.GetPacketData(1)
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