Source.ColorState 属性

定义

获取或设置 IVsTextColorState 在各种分析任务中使用的对象。

public:
 property Microsoft::VisualStudio::TextManager::Interop::IVsTextColorState ^ ColorState { Microsoft::VisualStudio::TextManager::Interop::IVsTextColorState ^ get(); void set(Microsoft::VisualStudio::TextManager::Interop::IVsTextColorState ^ value); };
public:
 property Microsoft::VisualStudio::TextManager::Interop::IVsTextColorState ^ ColorState { Microsoft::VisualStudio::TextManager::Interop::IVsTextColorState ^ get(); void set(Microsoft::VisualStudio::TextManager::Interop::IVsTextColorState ^ value); };
public Microsoft.VisualStudio.TextManager.Interop.IVsTextColorState ColorState { get; set; }
member this.ColorState : Microsoft.VisualStudio.TextManager.Interop.IVsTextColorState with get, set
Public Property ColorState As IVsTextColorState

属性值

IVsTextColorState

IVsTextColorStateIVsTextLines 传递给构造函数的对象获取的接口。

注解

IVsTextColorState 接口由 colorizer 用来记住每行末尾的分析状态。 这允许分析从源中的任何行继续。

备注

Colorizer 分析器不仅适用于语法突出显示,还用于检索有关行中的标记的信息。 这通常是通过调用 GetLineInfo 方法来标记行来完成的; 然后每个令牌逐个进行访问。

适用于