IVsButtonBar.GetCurrentSelection(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
);