Compartilhar via


CodeWindowManager.AddAdornments Method

Definition

Install the optional TypeAndMemberDropdownBars, and primary and secondary view filters

public:
 virtual int AddAdornments();
public:
 virtual int AddAdornments();
 virtual int AddAdornments();
public virtual int AddAdornments ();
abstract member AddAdornments : unit -> int
override this.AddAdornments : unit -> int
Public Overridable Function AddAdornments () As Integer

Returns

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

Implements

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 Microsoft.VisualStudio.Package.LanguageService.CreateDropDownHelper to obtain a TypeAndMemberDropdownBars class. If Microsoft.VisualStudio.Package.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.

Applies to