Compartir a través de


IStylusAsyncPlugin.InAirPackets Method

IStylusAsyncPlugin.InAirPackets Method

Informs the object implementing the IStylusAsyncPlugin interface that the stylus is moving above the digitizer.

Definition

Visual Basic .NET Public Sub InAirPackets( _
ByVal sender As RealTimeStylus, _
ByVal data As InAirPacketsData _
)
C# public void InAirPackets(
RealTimeStylus sender,
InAirPacketsData data
);
Managed C++ public: void InAirPackets(
RealTimeStylus *sender,
InAirPacketsData *data
);

Parameters

sender Microsoft.StylusInput.RealTimeStylus. The RealTimeStylus which called this method.
data Microsoft.StylusInput.PluginData.InAirPacketsData. The information about the stylus movement.

Remarks

You can modify the packet data by calling the inherited SetData method of the InAirPacketsData object contained in the data parameter.

Note: An ArgumentException Leave Site exception is thrown by the SetData method if the length of the array in the value parameter is not a multiple of the inherited Count 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).

Examples

[C#]

This C# example alerts the developer to the number in-air packets received and the stylus 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());
}

See Also