This documentation is archived and is not being maintained.

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)

void TabletAdded (
	RealTimeStylus sender,
	TabletAddedData data
)
void TabletAdded (
	RealTimeStylus sender, 
	TabletAddedData data
)
function TabletAdded (
	sender : RealTimeStylus, 
	data : TabletAddedData
)
Not applicable.

Parameters

sender

The RealTimeStylus object that sent the notification.

data

Information about the Tablet object that was added.

NoteNote:

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

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: