Condividi tramite


IStylusSyncPlugin.TabletAdded Method

IStylusSyncPlugin.TabletAdded Method

Notification occurs when a Tablet is attached to the system.

Definition

Visual Basic .NET Public Sub TabletAdded( _
ByVal sender As RealTimeStylus, _
ByVal data As TabletAddedData _
)
C# public void TabletAdded(
RealTimeStylus sender,
TabletAddedData data
);
Managed C++ public: void TabletAdded(
RealTimeStylus *sender,
TabletAddedData *data
);

Parameters

sender Microsoft.StylusInput.RealTimeStylus. The RealTimeStylus that sent the notification.
data Microsoft.StylusInput.PluginData.TabletAddedData. Provides access to the Tablet that was added.

Examples

[C#]

This C# example implements the TabletAdded method. It 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.");
}

See Also