This documentation is archived and is not being maintained.

IStylusAsyncPlugin.StylusInRange Method

Notifies 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)

'Declaration
Sub StylusInRange ( _
	sender As RealTimeStylus, _
	data As StylusInRangeData _
)
'Usage
Dim instance As IStylusAsyncPlugin 
Dim sender As RealTimeStylus 
Dim data As StylusInRangeData

instance.StylusInRange(sender, data)

Parameters

sender
Type: Microsoft.StylusInput.RealTimeStylus

The RealTimeStylus object that sent the notification.

data
Type: Microsoft.StylusInput.PluginData.StylusInRangeData

Information about the Stylus object associated with the stylus.

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 IStylusAsyncPlugin.StylusInRange
    Debug.Assert(False, "StylusInRange", "The stylus with ID number " & _
      data.Stylus.Id.ToString() & " has come in range of the tablet.")
End Sub 'StylusInRange

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.

.NET Framework

Supported in: 3.0
Show: