VsDropdownBarClass.SetCurrentSelection(Int32, Int32) Метод
Определение
Задает текущее выделение в заданном раскрывающемся сочетании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) = 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
Параметры
- iCombo
- Int32
[in] Раскрывающийся список или поле со списком окна.[in] The drop-down bar/Window combo.
- iNewSelection
- Int32
[in] Новый выбранный элемент.[in] New selected item.
Возвращаемое значение
Если метод завершается с ошибкой, возвращается S_OK значение; в противном случае возвращается код ошибки.If the method succeeds, it returns S_OK; otherwise, it returns an error code.