Share via


IStylusSyncPlugin.StylusButtonDown Method

IStylusSyncPlugin.StylusButtonDown Method

Informs the implementing plug-in that the stylus button is pressed

Definition

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

Parameters

sender Microsoft.StylusInput.RealTimeStylus. The RealTimeStylus that sent the notification.
data Microsoft.StylusInput.PluginData.StylusButtonDownData. Contains information about the button that was pressed.

Examples

[C#]

This C# example implements the StylusButtonDown method and alerts the developer when a button is pressed on the stylus.

public void StylusButtonDown(RealTimeStylus sender, StylusButtonDownData data)
{
  Debug.Assert(false, null, "The " + data.ButtonIndex.ToString() + " button was pressed.");
}

See Also