CodeWindowManager.AddAdornments Method
Called to add adornments or additional user interface (UI) elements to the text view.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Overridable Function AddAdornments As Integer
public virtual int AddAdornments()
public:
virtual int AddAdornments()
abstract AddAdornments : unit -> int
override AddAdornments : unit -> int
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.