IStylusSyncPlugin.StylusOutOfRange 方法

通知实现插件手写笔正离开数字化仪的检测范围。

命名空间:  Microsoft.StylusInput
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
Sub StylusOutOfRange ( _
    sender As RealTimeStylus, _
    data As StylusOutOfRangeData _
)
用法
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
)
void StylusOutOfRange(
    RealTimeStylus sender,
    StylusOutOfRangeData data
)
function StylusOutOfRange(
    sender : RealTimeStylus, 
    data : StylusOutOfRangeData
)

参数

示例

此 C# 示例实现 StylusOutOfRange 方法。此示例在手写笔已离开 Tablet 数字化仪的检测范围时通知开发人员。

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.");
}

此 Microsoft Visual Basic .NET 示例实现 StylusOutOfRange 方法。此示例在手写笔已离开 Tablet 数字化仪的检测范围时通知开发人员。

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

平台

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

IStylusSyncPlugin 接口

IStylusSyncPlugin 成员

Microsoft.StylusInput 命名空间

StylusOutOfRangeData

StylusInRange