Export (0) Print
Expand All

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
)

Parameters

sender
Type: Microsoft.StylusInput.RealTimeStylus

The RealTimeStylus object that sent the notification.

data
Type: Microsoft.StylusInput.PluginData.TabletAddedData

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 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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft