Share via


VsDropdownBarClass.SetCurrentSelection(Int32, Int32) Method

Definition

Sets the current selection in the given drop-down combination.

public:
 virtual int SetCurrentSelection(int iCombo, int iNewSelection) = Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar::SetCurrentSelection;
public:
 virtual int SetCurrentSelection(int iCombo, int iNewSelection);
public:
 virtual int SetCurrentSelection(int iCombo, int iNewSelection) = Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar::SetCurrentSelection;
 virtual int SetCurrentSelection(int iCombo, int iNewSelection);
public virtual int SetCurrentSelection (int iCombo, int iNewSelection);
abstract member SetCurrentSelection : int * int -> int
override this.SetCurrentSelection : int * int -> int
Public Overridable Function SetCurrentSelection (iCombo As Integer, iNewSelection As Integer) As Integer

Parameters

iCombo
Int32

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

iNewSelection
Int32

[in] New selected item.

Returns

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

Implements

Applies to