VsDropdownBarClass::GetCurrentSelection Method (Int32, Int32)

 

Returns the entry that is currently selected in a given combination.

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

public:
virtual int GetCurrentSelection(
	int iCombo,
	[OutAttribute] int% piCurSel
)

Parameters

iCombo
Type: System::Int32

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

piCurSel
Type: System::Int32

[out] Currently selected item.

Return Value

Type: System::Int32

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

Return to top
Show: