Partager via


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

Syntax

Public Overridable Function AddAdornments As Integer

Dim instance As CodeWindowManager
Dim returnValue As Integer

returnValue = instance.AddAdornments()
public virtual int AddAdornments()
public:
virtual int AddAdornments()
public function AddAdornments() : int

Return Value

Type: System.Int32

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

Implements

IVsCodeWindowManager.AddAdornments()

Remarks

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.

Permissions

See Also

Reference

CodeWindowManager Class

CodeWindowManager Members

Microsoft.VisualStudio.Package Namespace