IVsDropdownBar::SetCurrentSelection Method (Int32, Int32)

 

Sets the current selection in the given drop-down combination

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

int SetCurrentSelection(
	int iCombo,
	int iNewSelection
)

Parameters

iCombo
Type: System::Int32

[in] The drop-down bar/Window combo.

iNewSelection
Type: System::Int32

[in] New selected item.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsDropdownBar::SetCurrentSelection(
   [in] long iCombo,
   [in] long iNewSelection
);
Return to top
Show: