IVsButtonBar.GetCurrentSelection(Int32) Method

Definition

Returns the number of the button that is currently pressed.

public:
 int GetCurrentSelection([Runtime::InteropServices::Out] int % piCurButton);
int GetCurrentSelection([Runtime::InteropServices::Out] int & piCurButton);
public int GetCurrentSelection (out int piCurButton);
abstract member GetCurrentSelection : int -> int
Public Function GetCurrentSelection (ByRef piCurButton As Integer) As Integer

Parameters

piCurButton
Int32

[out] Pointer to the number of the button currently pressed.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsButtonBar::GetCurrentSelection(  
   [out] long *piCurButton  
);  

Applies to