IStylusAsyncPlugin.InAirPackets - метод
Обновлен: Ноябрь 2007
Notifies the object implementing the IStylusAsyncPlugin interface that the stylus is moving above the digitizer.
Пространство имен: Microsoft.StylusInput
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Sub InAirPackets ( _
sender As RealTimeStylus, _
data As InAirPacketsData _
)
'Применение
Dim instance As IStylusAsyncPlugin
Dim sender As RealTimeStylus
Dim data As InAirPacketsData
instance.InAirPackets(sender, data)
void InAirPackets(
RealTimeStylus sender,
InAirPacketsData data
)
void InAirPackets(
RealTimeStylus^ sender,
InAirPacketsData^ data
)
void InAirPackets(
RealTimeStylus sender,
InAirPacketsData data
)
function InAirPackets(
sender : RealTimeStylus,
data : InAirPacketsData
)
Параметры
- sender
Тип: Microsoft.StylusInput.RealTimeStylus
The RealTimeStylus object that called this method.
- data
Тип: 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.
Примечание. |
---|
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 Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0