Share via


CodeWindowManager.RemoveAdornments Method

Called to remove any adornments on a text view that is being closed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Overridable Function RemoveAdornments As Integer
public virtual int RemoveAdornments()
public:
virtual int RemoveAdornments()
abstract RemoveAdornments : unit -> int  
override RemoveAdornments : unit -> int
public function RemoveAdornments() : int

Return Value

Type: System.Int32
If successful, this method returns S_OK; otherwise, this method returns an error code.

Implements

IVsCodeWindowManager.RemoveAdornments()

Remarks

The base method removes any drop-down bars that may have been added by AddAdornments, closes all view filters, closes the Source object and calls LanguageService.OnCloseSource, and finally calls RemoveCodeWindowManager to remove the association with the language service.

.NET Framework Security

See Also

Reference

CodeWindowManager Class

Microsoft.VisualStudio.Package Namespace