IStylusSyncPlugin.StylusButtonDown Method
Informs the implementing plug-in that the user has pressed a stylus button.
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
'Declaration Sub StylusButtonDown ( _ sender As RealTimeStylus, _ data As StylusButtonDownData _ ) 'Usage Dim instance As IStylusSyncPlugin Dim sender As RealTimeStylus Dim data As StylusButtonDownData instance.StylusButtonDown(sender, data)
Parameters
- sender
- Type: Microsoft.StylusInput.RealTimeStylus
The RealTimeStylus object that sent the notification.
- data
- Type: Microsoft.StylusInput.PluginData.StylusButtonDownData
Information about the button that was pressed.
This C# example implements the StylusButtonDown method and alerts the developer when the user presses a button on the stylus.
public void StylusButtonDown(RealTimeStylus sender, StylusButtonDownData data) { Debug.Assert(false, "StylusButtonDown", "The " + data.ButtonIndex.ToString() + " button was pressed."); }
This Microsoft Visual Basic .NET example implements the StylusButtonDown method and alerts the developer when the user presses a button on the stylus.
Public Sub StylusButtonDown(ByVal sender As RealTimeStylus, ByVal data As StylusButtonDownData) _ Implements IStylusSyncPlugin.StylusButtonDown Debug.Assert(False, "StylusButtonDown", "The " & _ data.ButtonIndex.ToString() & " button was pressed.") End Sub 'StylusButtonDown
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.