通过允许该环境挂起和重新启动着色扩展语言服务 colorizer。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
<GuidAttribute("868A4381-537A-4D61-803C-301819CE2C2F")> _
<InterfaceTypeAttribute()> _
Public Interface IVsColorizer2
[GuidAttribute("868A4381-537A-4D61-803C-301819CE2C2F")]
[InterfaceTypeAttribute()]
public interface IVsColorizer2
[GuidAttribute(L"868A4381-537A-4D61-803C-301819CE2C2F")]
[InterfaceTypeAttribute()]
public interface class IVsColorizer2
[<GuidAttribute("868A4381-537A-4D61-803C-301819CE2C2F")>]
[<InterfaceTypeAttribute()>]
type IVsColorizer2 = interface end
public interface IVsColorizer2
IVsColorizer2 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
BeginColorization | 开始或继续着色操作。 |
![]() |
EndColorization | 挂起或关闭着色操作。 |
页首
备注
挂起然后重新启动它与不影响其他操作通常很有用。
例如,在中,在插入时生成的代码,应等待,直到代码在 colorizing 之前重新设置格式并重构。
对实现者的说明
,如果您希望提供 Visual Studio 环境结构挂起和重新启动着色,则实现此接口。
在提供 IVsColorizer的实现的同一对象必须实现IVsColorizer2 。
IVsColorizer2IVsColorizer 不从派生,并执行其方法。
对调用者的说明
调用 IVsColorizer 接口的 QueryInterface 方法获取此接口。 在复杂任务期间,可编辑使用此接口优化屏幕刷新。