次の方法で共有


IVsDropdownBar.SetCurrentSelection(Int32, Int32) Method

Definition

Sets the current selection in the given drop-down combination

public:
 int SetCurrentSelection(int iCombo, int iNewSelection);
public:
 int SetCurrentSelection(int iCombo, int iNewSelection);
int SetCurrentSelection(int iCombo, int iNewSelection);
public int SetCurrentSelection (int iCombo, int iNewSelection);
abstract member SetCurrentSelection : int * int -> int
Public 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. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsDropdownBar::SetCurrentSelection(  
   [in] long iCombo,  
   [in] long iNewSelection  
);  

Applies to