Compartir a través de


TypeAndMemberDropdownBars.OnItemSelected(Int32, Int32) Method

Definition

Called when an entry is highlighted in one of the combo boxes.

public:
 virtual int OnItemSelected(int combo, int index);
public:
 virtual int OnItemSelected(int combo, int index);
 virtual int OnItemSelected(int combo, int index);
public virtual int OnItemSelected (int combo, int index);
abstract member OnItemSelected : int * int -> int
override this.OnItemSelected : int * int -> int
Public Overridable Function OnItemSelected (combo As Integer, index As Integer) As Integer

Parameters

combo
Int32

[in] The ID of the combo box (0 for the types combo box, 1 for the members combo box).

index
Int32

[in] The index of the entry that was highlighted.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Implements

Remarks

This method is called when an entry is highlighted in a combo box. When the item is clicked on or otherwise chosen, The OnItemChosen method is called.

This method is an implementation of the OnItemSelected method on the IVsDropdownBarClient method.

The base method does nothing and always returns a success code of S_OK.

Applies to