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)

void StylusInRange (
	RealTimeStylus sender,
	StylusInRangeData data
)
void StylusInRange (
	RealTimeStylus sender, 
	StylusInRangeData data
)
function StylusInRange (
	sender : RealTimeStylus, 
	data : StylusInRangeData
)
Not applicable.

Parameters

sender

The RealTimeStylus object that sent the notification.

data

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: