Condividi tramite


IStylusAsyncPlugin.StylusOutOfRange Method

IStylusAsyncPlugin.StylusOutOfRange Method

Informs the implementing plug-in that the tablet pen is leaving the input area of the RealTimeStylus object or leaving the detection range of the digitizer above the input area of the RealTimeStylus object.

Definition

Visual Basic .NET Public Sub StylusOutOfRange( _
ByVal sender As RealTimeStylus, _
ByVal data As StylusOutOfRangeData _
)
C# public void StylusOutOfRange(
RealTimeStylus sender,
StylusOutOfRangeData data
);
Managed C++ public: void StylusOutOfRange(
RealTimeStylus *sender,
StylusOutOfRangeData *data
);

Parameters

sender Microsoft.StylusInput.RealTimeStylus. The RealTimeStylus that sent the notification.
data Microsoft.StylusInput.PluginData.StylusOutOfRangeData. Provides access to the stylus associated with the notification.

Examples

[C#]

This C# example implements the StylusOutOfRange method. It 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.");
}

See Also