This documentation is archived and is not being maintained.
IStylusAsyncPlugin.StylusButtonDown Method
Visual Studio 2008
Notifies the implementing plug-in that the user is pressing a stylus button.
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
'Declaration Sub StylusButtonDown ( _ sender As RealTimeStylus, _ data As StylusButtonDownData _ ) 'Usage Dim instance As IStylusAsyncPlugin 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 is pressed.
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, "StylusButtonDown", "The " + data.ButtonIndex.ToString() + " button was pressed."); }
This Microsoft Visual Basic .NET example implements the StylusButtonDown method and alerts the developer when a button is pressed on the stylus.
Public Sub StylusButtonDown(ByVal sender As RealTimeStylus, ByVal data As StylusButtonDownData) _ Implements IStylusAsyncPlugin.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.
Show: