IVsLanguageInfo::GetCodeWindowManager Method (IVsCodeWindow^, IVsCodeWindowManager^)
Visual Studio 2015
Allows a language to add adornments to a code editor.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetCodeWindowManager(
IVsCodeWindow^ pCodeWin,
[OutAttribute] IVsCodeWindowManager^% ppCodeWinMgr
)
Parameters
- pCodeWin
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsCodeWindow^
[in] The IVsCodeWindow interface for the requested code editor manager.
- ppCodeWinMgr
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsCodeWindowManager^
[out] Returns an IVsCodeWindowManager object.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsLanguageInfo::GetCodeWindowManager(
[in] IVsCodeWindow *pCodeWin,
[out] IVsCodeWindowManager **ppCodeWinMgr
);
Visual Studio calls this method to obtain a code window manager as represented by the IVsCodeWindowManager interface and to let the language service have access to the code window in order to add possible adornments such as a drop-down bar. This method is the second method called after a language package is loaded (the first method is the SetSite method on the language package itself).
Show: