次の方法で共有


TypeAndMemberDropdownBars.OnComboGetFocus Method

Called when a combo box gets the focus.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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)

Syntax

'宣言
Public Overridable Function OnComboGetFocus ( _
    combo As Integer _
) As Integer
public virtual int OnComboGetFocus(
    int combo
)

Parameters

  • combo
    Type: System.Int32
    [in] The ID of the combo box (0 for the types combo box, 1 for the members combo box).

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsDropdownBarClient.OnComboGetFocus(Int32)

Remarks

Override this method if you need to do anything special when a particular combo box gets the focus.

This method is an implementation of the OnComboGetFocus method on the IVsDropdownBarClient interface.

The base method does nothing and always returns S_OK.

.NET Framework Security

See Also

Reference

TypeAndMemberDropdownBars Class

Microsoft.VisualStudio.Package Namespace