IStylusAsyncPlugin.StylusInRange 方法

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

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

语法

声明
Sub StylusInRange ( _
    sender As RealTimeStylus, _
    data As StylusInRangeData _
)
用法
Dim instance As IStylusAsyncPlugin
Dim sender As RealTimeStylus
Dim data As StylusInRangeData

instance.StylusInRange(sender, data)
void StylusInRange(
    RealTimeStylus sender,
    StylusInRangeData data
)
void StylusInRange(
    RealTimeStylus^ sender, 
    StylusInRangeData^ data
)
void StylusInRange(
    RealTimeStylus sender,
    StylusInRangeData data
)
function StylusInRange(
    sender : RealTimeStylus, 
    data : StylusInRangeData
)

参数

示例

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

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

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

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 Vista, Windows XP SP2, Windows Server 2003

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

IStylusAsyncPlugin 接口

IStylusAsyncPlugin 成员

Microsoft.StylusInput 命名空间

StylusOutOfRange