Partager via


IVsLanguageInfo.GetCodeWindowManager Method

Definition

Allows a language to add adornments to a code editor.

public:
 int GetCodeWindowManager(Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindow ^ pCodeWin, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindowManager ^ % ppCodeWinMgr);
public:
 int GetCodeWindowManager(Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindow ^ pCodeWin, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindowManager ^ &  ppCodeWinMgr);
int GetCodeWindowManager(Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindow const & pCodeWin, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindowManager const & & ppCodeWinMgr);
public int GetCodeWindowManager (Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow pCodeWin, out Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindowManager ppCodeWinMgr);
abstract member GetCodeWindowManager : Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow * IVsCodeWindowManager -> int
Public Function GetCodeWindowManager (pCodeWin As IVsCodeWindow, ByRef ppCodeWinMgr As IVsCodeWindowManager) As Integer

Parameters

pCodeWin
IVsCodeWindow

[in] The IVsCodeWindow interface for the requested code editor manager.

ppCodeWinMgr
IVsCodeWindowManager

[out] Returns an IVsCodeWindowManager object.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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).

Applies to