TypeAndMemberDropdownBars Class
Provides support for the combo boxes showing type and member information as offered by a language service.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Package
Assemblies: 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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaración
<CLSCompliantAttribute(False)> _
Public MustInherit Class TypeAndMemberDropdownBars _
Implements IVsDropdownBarClient
'Uso
Dim instance As TypeAndMemberDropdownBars
[CLSCompliantAttribute(false)]
public abstract class TypeAndMemberDropdownBars : IVsDropdownBarClient
[CLSCompliantAttribute(false)]
public ref class TypeAndMemberDropdownBars abstract : IVsDropdownBarClient
[<AbstractClassAttribute>]
[<CLSCompliantAttribute(false)>]
type TypeAndMemberDropdownBars =
class
interface IVsDropdownBarClient
end
public abstract class TypeAndMemberDropdownBars implements IVsDropdownBarClient
Remarks
This class is used to manage the combo boxes showing type and member information for a particular source file. These combo boxes appear in a drop-down bar (represented by an IVsDropdownBar interface) at the top of the editor view showing the source file. This class contains all the information required for Visual Studio to show and manage those combo boxes. In addition, this class contains event handlers that are called when the combo boxes are accessed by the user.
SynchronizeDropdowns
SynchronizeDropdowns is a method that is marked as internal and is called from the base CodeWindowManager class. This internal method is given an IVsTextView object when the base AddAdornments method on the CodeWindowManager class is called. The IVsTextView object is used to update the display when an item is chosen in a combo box. The SynchronizeDropdowns method is also called from the base method SynchronizeDropdowns in the LanguageService class.
Notes to Implementers
If you plan to support the type and member combo boxes, you must derive a class from the TypeAndMemberDropdownBars class and return an instance of your class from the CreateDropDownHelper method in your version of the LanguageService class. In addition, you must implement the OnSynchronizeDropdowns method which handles the task of filling the internal lists to be shown in the combo boxes.
Notes to Callers
An instance of your version of a TypeAndMemberDropdownBars object is returned from a call to CreateDropDownHelper in the LanguageService class. If CreateDropDownHelper returns a valid object, Visual Studio creates and manages the combo boxes for you, using information from your version of the TypeAndMemberDropdownBars class.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Package.TypeAndMemberDropdownBars
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.