Share via


IStylusSyncPlugin.StylusOutOfRange Method

Informs the implementing plug-in that the stylus is leaving the detection range of the digitizer.

Namespace:  Microsoft.StylusInput
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Sub StylusOutOfRange ( _
    sender As RealTimeStylus, _
    data As StylusOutOfRangeData _
)
'Usage
Dim instance As IStylusSyncPlugin 
Dim sender As RealTimeStylus 
Dim data As StylusOutOfRangeData

instance.StylusOutOfRange(sender, data)
void StylusOutOfRange(
    RealTimeStylus sender,
    StylusOutOfRangeData data
)
void StylusOutOfRange(
    RealTimeStylus^ sender, 
    StylusOutOfRangeData^ data
)
function StylusOutOfRange(
    sender : RealTimeStylus, 
    data : StylusOutOfRangeData
)

Parameters

Examples

This C# example implements the StylusOutOfRange method. The example notifies the developer when the stylus has gone out of the detection range of 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 detection range of the tablet digitizer.

Public Sub StylusOutOfRange(ByVal sender As RealTimeStylus, ByVal data As StylusOutOfRangeData) _
 Implements IStylusSyncPlugin.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

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

See Also

Reference

IStylusSyncPlugin Interface

IStylusSyncPlugin Members

Microsoft.StylusInput Namespace

StylusOutOfRangeData

StylusInRange