IVsLanguageInfo.GetColorizer 方法

返回 colorizer。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
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

参数

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsLanguageInfo::GetColorizer(
   [in] IVsTextLines *pBuffer, 
   [out] IVsColorizer **ppColorizer
);

此方法会返回一个接口在语言信息对象,或者在新的对象。 ,如果该语言的 colorizer 需要有关每个文件的基类型,的状态信息,例如方法将返回在新对象的接口。

colorizer 为语法着色使用,并可用于标记的快速置于行上的使用。

.NET Framework 安全性

请参阅

参考

IVsLanguageInfo 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间