返回 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
参数
pBuffer
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextLines[in] 请求的 colorizer 的 IVsTextLines 接口。
ppColorizer
类型:Microsoft.VisualStudio.TextManager.Interop.IVsColorizer%[out] 返回 IVsColorizer 对象。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsLanguageInfo::GetColorizer(
[in] IVsTextLines *pBuffer,
[out] IVsColorizer **ppColorizer
);
此方法会返回一个接口在语言信息对象,或者在新的对象。 ,如果该语言的 colorizer 需要有关每个文件的基类型,的状态信息,例如方法将返回在新对象的接口。
colorizer 为语法着色使用,并可用于标记的快速置于行上的使用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。