Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.