IStylusAsyncPlugin.StylusOutOfRange Method
Notifies the implementing plug-in that the stylus is leaving detection range of the digitizer.
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
'Declaration Sub StylusOutOfRange ( _ sender As RealTimeStylus, _ data As StylusOutOfRangeData _ ) 'Usage Dim instance As IStylusAsyncPlugin Dim sender As RealTimeStylus Dim data As StylusOutOfRangeData instance.StylusOutOfRange(sender, data)
Parameters
- sender
- Type: Microsoft.StylusInput.RealTimeStylus
The RealTimeStylus object that sent the notification.
- data
- Type: Microsoft.StylusInput.PluginData.StylusOutOfRangeData
Information about the Stylus object associated with the notification.
This C# example implements the StylusOutOfRange method. The example notifies the developer when the stylus has gone out of the range detected by the tablet digitizer.
public void StylusOutOfRange(RealTimeStylus sender, StylusOutOfRangeData data) { Debug.Assert(false, "StylusOutOfRange", "The stylus with ID number " + data.Stylus.Id.ToString() + " has gone out of range of the tablet."); }
This Microsoft Visual Basic .NET example implements the StylusOutOfRange method. The example notifies the developer when the stylus has gone out of the range detected by the tablet digitizer.
Public Sub StylusOutOfRange(ByVal sender As RealTimeStylus, ByVal data As StylusOutOfRangeData) _ Implements IStylusAsyncPlugin.StylusOutOfRange Debug.Assert(False, "StylusOutOfRange", "The stylus with ID number " & _ data.Stylus.Id.ToString() & " has gone out of range of the tablet.") End Sub 'StylusOutOfRange
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.