Share via


IStylusAsyncPlugin.TabletAdded Method

Notifies an implementing plug-in when a Microsoft.Ink.Tablet object is attached to the system.

Namespace:  Microsoft.StylusInput
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Sub TabletAdded ( _
    sender As RealTimeStylus, _
    data As TabletAddedData _
)
'Usage
Dim instance As IStylusAsyncPlugin 
Dim sender As RealTimeStylus 
Dim data As TabletAddedData

instance.TabletAdded(sender, data)
void TabletAdded(
    RealTimeStylus sender,
    TabletAddedData data
)
void TabletAdded(
    RealTimeStylus^ sender, 
    TabletAddedData^ data
)
function TabletAdded(
    sender : RealTimeStylus, 
    data : TabletAddedData
)

Parameters

Remarks

Note

This method is called by the RealTimeStylus object, whether the RealTimeStylus object is enabled or disabled.

Examples

This C# example implements the TabletAdded method. The example notifies the developer when a tablet is added to the system.

public void TabletAdded(RealTimeStylus sender, TabletAddedData data)
{
    Debug.Assert(false, "TabletAdded", "A tablet called " 
                 + data.Tablet.Name + " has been added to the system.");
}

This Microsoft Visual Basic .NET example implements the TabletAdded method. The example notifies the developer when a tablet is added to the system.

Public Sub TabletAdded(ByVal sender As RealTimeStylus, ByVal data As TabletAddedData) _
 Implements IStylusAsyncPlugin.TabletAdded
    Debug.Assert(False, "TabletAdded", "A tablet called " & _
                   data.Tablet.Name & " has been added to the system.")
End Sub 'TabletAdded

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

IStylusAsyncPlugin Interface

IStylusAsyncPlugin Members

Microsoft.StylusInput Namespace

TabletAddedData