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
)
參數
- sender
型別:Microsoft.StylusInput.RealTimeStylus
已傳送告知的 RealTimeStylus 物件。
- data
型別:Microsoft.StylusInput.PluginData.StylusOutOfRangeData
與告知相關聯之 Stylus 物件的相關資訊。
範例
這個 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