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
'Declaration
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.