Assembly: Microsoft.VisualStudio.Package.LanguageService (in microsoft.visualstudio.package.languageservice.dll)
[CLSCompliantAttribute(false)] [ComVisibleAttribute(true)] public class CodeWindowManager : IVsCodeWindowManager
/** @attribute CLSCompliantAttribute(false) */ /** @attribute ComVisibleAttribute(true) */ public class CodeWindowManager implements IVsCodeWindowManager
This class provides a default implementation of the VSIP interface,and manages the , , , and objects associated with the given IVsCodeWindow.
This class callson your for each new created by Visual Studio and installs the resulting filter into the command chain. You do not have to override CreateViewFilter, since a default view filter will be created.
If your LanguageService returns an object fromthen you will have properties in the Properties window associated with your source files.
This class also provides support for optional drop-down combo boxes (also known as drop-down bars), as represented by theNotes to Implementers If you need to add any user interface (UI) features to the view window, you can derive a class from the CodeWindowManager class and override the methods interface, for listing types and members by installing the object returned from your method. If you do not implement CreateDropDownHelper, no drop down-bars are established. and ; just be sure to call the base class versions of those methods in your implementations. Otherwise, the base class handles all normal chores associated with a language service. Notes to Callers The LanguageService class maintains a list of CodeWindowManagers, one instance for each text view or open source file. The only methods called by Visual Studio are AddAdornments and RemoveAdornments (these are called directly) and and (these are called indirectly through the ViewFilter class in its implementation of the interface).