Export (0) Print
Expand All
Expand Minimize

LanguageService.SynchronizeDropdowns Method

Called to update a drop-down bar based on the current caret position.

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)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

public virtual void SynchronizeDropdowns()

This method not typically called unless you call it in your own code.

The base method uses the current active view to get the associated CodeWindowManager object, and then asks the CodeWindowManager object for the TypeAndMemberDropdownBars object. If that object exists, this method calls OnSynchronizeDropdowns with the current caret position.

Note that the default LanguageService.OnIdle calls OnCaretMoved which calls TypeAndMemberDropdownBars.SynchronizeDropdowns directly if the TypeAndMemberDropdownBars object exists in the CodeWindowManager object.

Show:
© 2014 Microsoft