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
'宣告
Public Overridable Function RemoveAdornments As Integer
public virtual int RemoveAdornments()
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
- 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.