Freigeben über


IVsButtonBar.SetCurrentSelection(Int32) Method

Definition

Specifies The button that is selected.

public:
 int SetCurrentSelection(int iCurButton);
public:
 int SetCurrentSelection(int iCurButton);
int SetCurrentSelection(int iCurButton);
public int SetCurrentSelection (int iCurButton);
abstract member SetCurrentSelection : int -> int
Public Function SetCurrentSelection (iCurButton As Integer) As Integer

Parameters

iCurButton
Int32

[in] Index of the button to select.

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::SetCurrentSelection(  
   [in] long iCurButton  
);  

Applies to