IVsLanguageInfo.GetColorizer Method
Returns the colorizer.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
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
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
[in] The IVsTextLines interface for the requested colorizer.
- ppColorizer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsColorizer%
[out] Returns an IVsColorizer object.
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
- 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.