InkCollectorNewInAirPacketsEventArgs.PacketCount Property
InkCollectorNewInAirPacketsEventArgs.PacketCount Property |
Gets the number of in-air packets received.
Definition
Visual Basic .NET Public ReadOnly Property PacketCount As Integer C# public int PacketCount { get; } Managed C++ public: __property int* get_PacketCount();
Property Value
System.Int32. The number of in-air packets received.
This property is read-only. This property has no default value.
Remarks
In-air packets are received when a Cursor object enters the physical detection range (proximity) of the tablet context.
Examples
[C#]
This C# example demonstrates an event handler for new in air packets for an InkOverlay, and how you might loop over the packet data to analyze it.
private void theInkOverlay_NewInAirPackets(object sender, Microsoft.Ink.InkCollectorNewInAirPacketsEventArgs e) { for (int i = 0; i < e.PacketCount; i++) { // Analyze packet data // ... } }
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example demonstrates an event handler for new in air packets for an InkOverlay, and how you might loop over the packet data to analyze it.
Private Sub theInkOverlay_NewInAirPackets(ByVal sender As Object, ByVal e As Microsoft.Ink.InkCollectorNewInAirPacketsEventArgs) _ Handles theInkOverlay.NewInAirPackets Dim index As Integer For index = 0 To e.PacketCount - 1 'Analyze packet data '... Next End Sub
See Also