Share via


CodeWindowManager.RemoveAdornments Method

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

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

Syntax

'Declaration
Public Overridable Function RemoveAdornments As Integer
'Usage
Dim instance As CodeWindowManager 
Dim returnValue As Integer 

returnValue = instance.RemoveAdornments()
public virtual int RemoveAdornments()
public:
virtual int RemoveAdornments()
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

CodeWindowManager Members

Microsoft.VisualStudio.Package Namespace