InkCollector.TabletRemoved 事件
从系统移除 Tablet 对象时发生。
命名空间: Microsoft.Ink
程序集: Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public Event TabletRemoved As InkCollectorTabletRemovedEventHandler
用法
Dim instance As InkCollector
Dim handler As InkCollectorTabletRemovedEventHandler
AddHandler instance.TabletRemoved, handler
public event InkCollectorTabletRemovedEventHandler TabletRemoved
public:
event InkCollectorTabletRemovedEventHandler^ TabletRemoved {
void add (InkCollectorTabletRemovedEventHandler^ value);
void remove (InkCollectorTabletRemovedEventHandler^ value);
}
/** @event */
public void add_TabletRemoved (InkCollectorTabletRemovedEventHandler value)
/** @event */
public void remove_TabletRemoved (InkCollectorTabletRemovedEventHandler value)
JScript 不支持事件。
备注
事件处理程序接收 InkCollectorTabletRemovedEventArgs 类型的参数,该参数包含有关此事件的数据。
创建 InkCollectorTabletRemovedEventHandler 委托时,需要标识将处理该事件的方法。若要将该事件与事件处理程序关联,请将该委托的一个实例添加到事件中。除非移除了该委托,否则每当发生该事件时就会调用此事件处理程序。出于性能方面的原因,默认事件关注处于关闭状态,但如果添加事件处理程序,它将自动打开。
示例
如果 Tablets 集合中的每个 Tablet 对象都支持 PitchRotation 属性,则此示例中的事件处理程序将激活仅对 3D 数字化仪可用的特殊应用程序功能。
Private Sub Event_OnTabletAdded(ByVal sender As Object, ByVal e As InkCollectorTabletAddedEventArgs)
Me.Is3DActive = New Tablets().IsPacketPropertySupported(PacketProperty.PitchRotation)
End Sub
private void Event_OnTabletAdded(object sender, InkCollectorTabletAddedEventArgs e)
{
this.Is3DActive = new Tablets().IsPacketPropertySupported(PacketProperty.PitchRotation);
}
启动时,InkCollector 对象 mInkCollector 将注册事件处理程序。
' register the TabletAdded and TabletRemoved event handlers
AddHandler mInkCollector.TabletAdded, New InkCollectorTabletAddedEventHandler(AddressOf Event_OnTabletAdded)
AddHandler mInkCollector.TabletRemoved, New InkCollectorTabletRemovedEventHandler(AddressOf Event_OnTabletRemoved)
// register the TabletAdded and TabletRemoved event handlers
mInkCollector.TabletAdded += new InkCollectorTabletAddedEventHandler(Event_OnTabletAdded);
mInkCollector.TabletRemoved += new InkCollectorTabletRemovedEventHandler(Event_OnTabletRemoved);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0