CodeWindowManager::AddAdornments Method ()

 

Called to add adornments or additional user interface (UI) elements to the text view.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int AddAdornments()

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

This method can be used if you have any UI elements you want to add to the text view that holds the code window. If you override this method in a class derived from the CodeWindowManager class, be sure to call the base class version of this method before any implementation you need.

The base method calls LanguageService::CreateDropDownHelper to obtain a TypeAndMemberDropdownBars class. If LanguageService::CreateDropDownHelper returns a valid object, any previous drop-down bars are removed from the view and the new ones are installed. Then the base method always calls the OnNewView method with the view obtained from the code window.

Return to top
Show: