LanguageService.CreateDropDownHelper Method
Instantiates a TypeAndMemberDropdownBars class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Dichiarazione
Public Overridable Function CreateDropDownHelper ( _
forView As IVsTextView _
) As TypeAndMemberDropdownBars
'Utilizzo
Dim instance As LanguageService
Dim forView As IVsTextView
Dim returnValue As TypeAndMemberDropdownBars
returnValue = instance.CreateDropDownHelper(forView)
public virtual TypeAndMemberDropdownBars CreateDropDownHelper(
IVsTextView forView
)
public:
virtual TypeAndMemberDropdownBars^ CreateDropDownHelper(
IVsTextView^ forView
)
abstract CreateDropDownHelper :
forView:IVsTextView -> TypeAndMemberDropdownBars
override CreateDropDownHelper :
forView:IVsTextView -> TypeAndMemberDropdownBars
public function CreateDropDownHelper(
forView : IVsTextView
) : TypeAndMemberDropdownBars
Parameters
- forView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[in] an IVsTextView representing the text view receiving the Navigation bar.
Return Value
Type: Microsoft.VisualStudio.Package.TypeAndMemberDropdownBars
If successful, returns a TypeAndMemberDropdownBars object; otherwise, returns a null value.
Remarks
Every text view can have a pair of combo boxes (implemented in what is called a Navigation bar) that show types and members based on the current location of the caret (the edit cursor). These combo-boxes are also used for quick navigation: selecting an item from the list jumps to that item in the source code. If your language service supports this functionality, you must derive a class from TypeAndMemberDropdownBars and return an instantiation of your class from this method.
The base method always returns a null value, indicating that the Navigation bar should not be used.
.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.