Share via


IStylusAsyncPlugin.StylusButtonDown Method

Notifies the implementing plug-in that the user is pressing a stylus button.

Namespace:  Microsoft.StylusInput
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'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)
void StylusButtonDown(
    RealTimeStylus sender,
    StylusButtonDownData data
)
void StylusButtonDown(
    RealTimeStylus^ sender, 
    StylusButtonDownData^ data
)
function StylusButtonDown(
    sender : RealTimeStylus, 
    data : StylusButtonDownData
)

Parameters

Examples

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

Platforms

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

IStylusAsyncPlugin Interface

IStylusAsyncPlugin Members

Microsoft.StylusInput Namespace

StylusButtonDownData

StylusButtons