InkCollectorTabletAddedEventHandler - делегат
Обновлен: Ноябрь 2007
Represents the method that handles the TabletAdded event of an InkCollector object.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Delegate Sub InkCollectorTabletAddedEventHandler ( _
sender As Object, _
e As InkCollectorTabletAddedEventArgs _
)
'Применение
Dim instance As New InkCollectorTabletAddedEventHandler(AddressOf HandlerMethod)
public delegate void InkCollectorTabletAddedEventHandler(
Object sender,
InkCollectorTabletAddedEventArgs e
)
public delegate void InkCollectorTabletAddedEventHandler(
Object^ sender,
InkCollectorTabletAddedEventArgs^ e
)
/** @delegate */
public delegate void InkCollectorTabletAddedEventHandler(
Object sender,
InkCollectorTabletAddedEventArgs e
)
JScript не поддерживает делегаты.
Параметры
- sender
Тип: System.Object
The source InkCollector object of this event.
- e
Тип: Microsoft.Ink.InkCollectorTabletAddedEventArgs
The InkCollectorTabletAddedEventArgs object that contains the event data.
Заметки
When you create an InkCollectorTabletAddedEventHandler delegate, you identify the method that handles the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For performance reasons, the default event interest is off but is turned on automatically in managed code if you add an event handler.
Примеры
The event handler in this example activates special application features only available to 3D digitizers if each Tablet object in the Tablets collection supports the PitchRotation property.
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);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0