Share via


IVsLanguageInfo.GetColorizer Method

Returns the colorizer.

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

Syntax

'Declaration
Function GetColorizer ( _
    pBuffer As IVsTextLines, _
    <OutAttribute> ByRef ppColorizer As IVsColorizer _
) As Integer
int GetColorizer(
    IVsTextLines pBuffer,
    out IVsColorizer ppColorizer
)
int GetColorizer(
    [InAttribute] IVsTextLines^ pBuffer, 
    [OutAttribute] IVsColorizer^% ppColorizer
)
abstract GetColorizer : 
        pBuffer:IVsTextLines * 
        ppColorizer:IVsColorizer byref -> int
function GetColorizer(
    pBuffer : IVsTextLines, 
    ppColorizer : IVsColorizer
) : 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::GetColorizer(
   [in] IVsTextLines *pBuffer, 
   [out] IVsColorizer **ppColorizer
);

This method can return an interface on the language info object itself, or on new objects. The method would return an interface on new objects, for example, if the colorizer for the language needs state information on a per-file basis.

The colorizer is used for syntax coloring and can be used for quick identification of tokens on a line.

.NET Framework Security

See Also

Reference

IVsLanguageInfo Interface

Microsoft.VisualStudio.TextManager.Interop Namespace