IStylusSyncPlugin.TabletRemoved 方法
在 Microsoft.Ink.Tablet 物件從系統移除時,通知實作外掛程式。
命名空間: Microsoft.StylusInput
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Sub TabletRemoved ( _
sender As RealTimeStylus, _
data As TabletRemovedData _
)
'用途
Dim instance As IStylusSyncPlugin
Dim sender As RealTimeStylus
Dim data As TabletRemovedData
instance.TabletRemoved(sender, data)
void TabletRemoved(
RealTimeStylus sender,
TabletRemovedData data
)
void TabletRemoved(
RealTimeStylus^ sender,
TabletRemovedData^ data
)
void TabletRemoved(
RealTimeStylus sender,
TabletRemovedData data
)
function TabletRemoved(
sender : RealTimeStylus,
data : TabletRemovedData
)
參數
- sender
型別:Microsoft.StylusInput.RealTimeStylus
已傳送告知的 RealTimeStylus 物件。
- data
型別:Microsoft.StylusInput.PluginData.TabletRemovedData
已移除之 Tablet 物件的相關資訊。
備註
注意事項: |
---|
無論 RealTimeStylus 物件已啟用或停用,這個方法都是由此 RealTimeStylus 物件呼叫。 |
範例
這個 C# 範例會實作 TabletRemoved 方法。這個範例會在手寫板已從系統移除時,通知開發人員。
public void TabletRemoved(RealTimeStylus sender, TabletRemovedData data)
{
Debug.Assert(false, "TabletRemoved", "The tablet at index "
+ data.TabletIndex.ToString() + " has been removed from the system.");
}
這個 Microsoft Visual Basic .NET 範例會實作 TabletRemoved 方法。這個範例會在手寫板已從系統移除時,通知開發人員。
Public Sub TabletRemoved(ByVal sender As RealTimeStylus, ByVal data As TabletRemovedData) _
Implements IStylusSyncPlugin.TabletRemoved
Debug.Assert(False, "TabletRemoved", "The tablet at index " & _
data.TabletIndex.ToString() & " has been removed from the system.")
End Sub 'TabletRemoved
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0