IStylusSyncPlugin.StylusInRange Method
Informs the implementing plug-in that the stylus is entering the detection range of the digitizer.
Namespace: Microsoft.StylusInput
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Sub StylusInRange ( _
sender As RealTimeStylus, _
data As StylusInRangeData _
)
'Usage
Dim instance As IStylusSyncPlugin
Dim sender As RealTimeStylus
Dim data As StylusInRangeData
instance.StylusInRange(sender, data)
void StylusInRange(
RealTimeStylus sender,
StylusInRangeData data
)
void StylusInRange(
RealTimeStylus^ sender,
StylusInRangeData^ data
)
function StylusInRange(
sender : RealTimeStylus,
data : StylusInRangeData
)
Parameters
sender
Type: Microsoft.StylusInput.RealTimeStylusThe RealTimeStylus object that sent the notification.
data
Type: Microsoft.StylusInput.PluginData.StylusInRangeDataInformation about the Stylus object associated with the notification.
Examples
This C# example implements the StylusInRange method. The example notifies the developer when a stylus has come within the detection range of the tablet digitizer.
public void StylusInRange(RealTimeStylus sender, StylusInRangeData data)
{
Debug.Assert(false, "StylusInRange", "The stylus with ID number "
+ data.Stylus.Id.ToString() + " has come in range of the tablet.");
}
This Microsoft Visual Basic .NET example implements the StylusInRange method. The example notifies the developer when a stylus has come within the detection range of the tablet digitizer.
Public Sub StylusInRange(ByVal sender As RealTimeStylus, ByVal data As StylusInRangeData) _
Implements IStylusSyncPlugin.StylusInRange
Debug.Assert(False, "StylusInRange", "The stylus with ID number " & _
data.Stylus.Id.ToString() & " has come in range of the tablet.")
End Sub 'StylusInRange
Platforms
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.
Version Information
.NET Framework
Supported in: 3.0