Partager via


IVsButtonBarClient.OnButtonPressed Method

Fired when a new button is pressed.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Déclaration
Function OnButtonPressed ( _
    iButton As Integer _
) As Integer
int OnButtonPressed(
    int iButton
)
int OnButtonPressed(
    [InAttribute] int iButton
)
abstract OnButtonPressed : 
        iButton:int -> int 
function OnButtonPressed(
    iButton : int
) : int

Parameters

  • iButton
    Type: System.Int32
    [in] Number of the button pressed.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsButtonBarClient::OnButtonPressed(
   [in] long iButton
);

.NET Framework Security

See Also

Reference

IVsButtonBarClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace