Share via


IStylusSyncPlugin.StylusButtonDown Method

Informs the implementing plug-in that the user has pressed 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 IStylusSyncPlugin 
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 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

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

IStylusSyncPlugin Interface

IStylusSyncPlugin Members

Microsoft.StylusInput Namespace

StylusButtonDownData

StylusButtons