Partager via


IVsLanguageInfo.GetCodeWindowManager Method

Allows a language to add adornments to a code editor.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Déclaration
Function GetCodeWindowManager ( _
    pCodeWin As IVsCodeWindow, _
    <OutAttribute> ByRef ppCodeWinMgr As IVsCodeWindowManager _
) As Integer
'Utilisation
Dim instance As IVsLanguageInfo
Dim pCodeWin As IVsCodeWindow
Dim ppCodeWinMgr As IVsCodeWindowManager
Dim returnValue As Integer

returnValue = instance.GetCodeWindowManager(pCodeWin, _
    ppCodeWinMgr)
int GetCodeWindowManager(
    IVsCodeWindow pCodeWin,
    out IVsCodeWindowManager ppCodeWinMgr
)
int GetCodeWindowManager(
    [InAttribute] IVsCodeWindow^ pCodeWin, 
    [OutAttribute] IVsCodeWindowManager^% ppCodeWinMgr
)
abstract GetCodeWindowManager : 
        pCodeWin:IVsCodeWindow * 
        ppCodeWinMgr:IVsCodeWindowManager byref -> int 
function GetCodeWindowManager(
    pCodeWin : IVsCodeWindow, 
    ppCodeWinMgr : IVsCodeWindowManager
) : int

Parameters

Return Value

Type: System.Int32
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).

.NET Framework Security

See Also

Reference

IVsLanguageInfo Interface

IVsLanguageInfo Members

Microsoft.VisualStudio.TextManager.Interop Namespace