Stroke.GetPacketData - метод (Int32, Int32)
Обновлен: Ноябрь 2007
Returns the packet data for a range of packets within the Stroke object.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Function GetPacketData ( _
index As Integer, _
count As Integer _
) As Integer()
'Применение
Dim instance As Stroke
Dim index As Integer
Dim count As Integer
Dim returnValue As Integer()
returnValue = instance.GetPacketData(index, _
count)
public int[] GetPacketData(
int index,
int count
)
public:
array<int>^ GetPacketData(
int index,
int count
)
public int[] GetPacketData(
int index,
int count
)
public function GetPacketData(
index : int,
count : int
) : int[]
Параметры
- index
Тип: System.Int32
The starting point of the zero-based index to a packet within the stroke.
- count
Тип: System.Int32
The number of point packet data sets to return, starting with the packet specified in the index parameter.
Возвращаемое значение
Тип: 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.
Заметки
If the number of packets in the Stroke object is less than the sum of the index and count parameters, then the returned array of data contains packet information for fewer points than the count requested.
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.
Примеры
This C# example gets the packet data for the first point in the Stroke object, theStroke.
int[] thePacketData = theStroke.GetPacketData(0, 1);
This Microsoft Visual Basic .NET example gets the packet data for the first point in the Stroke object, theStroke.
Dim thePacketData() As Integer = theStroke.GetPacketData(0, 1)
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
Microsoft.Ink - пространство имен