TypeAndMemberDropdownBars.OnItemSelected Method
Called when an entry is highlighted in one of the combo boxes.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaration
Public Overridable Function OnItemSelected ( _
combo As Integer, _
index As Integer _
) As Integer
public virtual int OnItemSelected(
int combo,
int index
)
public:
virtual int OnItemSelected(
int combo,
int index
)
abstract OnItemSelected :
combo:int *
index:int -> int
override OnItemSelected :
combo:int *
index:int -> int
public function OnItemSelected(
combo : int,
index : int
) : int
Parameters
combo
Type: Int32[in] The ID of the combo box (0 for the types combo box, 1 for the members combo box).
index
Type: Int32[in] The index of the entry that was highlighted.
Return Value
Type: Int32
If successful, returns S_OK; otherwise, returns an error code.
Implements
IVsDropdownBarClient.OnItemSelected(Int32, Int32)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.