共用方式為


IStylusAsyncPlugin.StylusOutOfRange 方法

通知實作外掛程式,手寫筆正在離開數位板的偵測範圍。

命名空間:  Microsoft.StylusInput
組件:  Microsoft.Ink (在 Microsoft.Ink.dll 中)

語法

'宣告
Sub StylusOutOfRange ( _
    sender As RealTimeStylus, _
    data As StylusOutOfRangeData _
)
'用途
Dim instance As IStylusAsyncPlugin
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 方法。這個範例會在手寫筆已移至數位手寫板的偵測範圍外時,通知開發人員。

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 方法。這個範例會在手寫筆已移至數位手寫板的偵測範圍外時,通知開發人員。

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

請參閱

參考

IStylusAsyncPlugin 介面

IStylusAsyncPlugin 成員

Microsoft.StylusInput 命名空間

StylusOutOfRangeData

StylusInRange