IStylusAsyncPlugin.InAirPackets Method
Notifies the object implementing the IStylusAsyncPlugin interface that the stylus is moving above the digitizer.
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
'Declaration Sub InAirPackets ( _ sender As RealTimeStylus, _ data As InAirPacketsData _ ) 'Usage Dim instance As IStylusAsyncPlugin Dim sender As RealTimeStylus Dim data As InAirPacketsData instance.InAirPackets(sender, data)
Parameters
- sender
- Type: Microsoft.StylusInput.RealTimeStylus
The RealTimeStylus object that called this method.
- data
- Type: Microsoft.StylusInput.PluginData.InAirPacketsData
Information about the stylus movement.
You can modify the packet data by calling the inherited SetData method of the InAirPacketsData object contained in the data parameter.
Note: |
|---|
An ArgumentException exception is thrown by the SetData method if the length of the array in the value parameter is not a multiple of the value of the inherited PacketPropertyCount property. |
You can cancel the in-air packets by calling the SetData method with the value parameter set to null (Nothing in Microsoft Visual Basic .NET).
This C# example alerts the developer to the number of in-air packets received and the Stylus object that generated the packets.
public void InAirPackets(RealTimeStylus sender, InAirPacketsData data) { Debug.Assert(false, "In-air packets reveived.", "Received " + data.Count.ToString() + " in-air packets from stylus " + data.Stylus.Id.ToString()); }
This C# example alerts the developer to the number of in-air packets received and the Stylus object that generated the packets.
Public Sub InAirPackets(ByVal sender As RealTimeStylus, ByVal data As InAirPacketsData) _ Implements IStylusAsyncPlugin.InAirPackets Debug.Assert(False, "InAirPackets", "Received " & data.Count.ToString() & _ " in-air packets from stylus " & _ data.Stylus.Id.ToString()) End Sub 'InAirPackets
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
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.
Note: