VsDropdownBarClass.SetCurrentSelection(Int32, 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.
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.