IVsContainedLanguage 接口

提供一个简单化的包含语言服务功能。

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

语法

声明
<GuidAttribute("518AB114-E3C6-4BBC-A469-99279F1A54E9")> _
<InterfaceTypeAttribute()> _
Public Interface IVsContainedLanguage
[GuidAttribute("518AB114-E3C6-4BBC-A469-99279F1A54E9")]
[InterfaceTypeAttribute()]
public interface IVsContainedLanguage
[GuidAttribute(L"518AB114-E3C6-4BBC-A469-99279F1A54E9")]
[InterfaceTypeAttribute()]
public interface class IVsContainedLanguage
[<GuidAttribute("518AB114-E3C6-4BBC-A469-99279F1A54E9")>]
[<InterfaceTypeAttribute()>]
type IVsContainedLanguage =  interface end
public interface IVsContainedLanguage

IVsContainedLanguage 类型公开以下成员。

方法

  名称 说明
公共方法 GetColorizer 返回该语言的一 colorizer 对象。
公共方法 GetLanguageServiceID 返回一个包含语言的完整的语言服务的 GUID 。
公共方法 GetTextViewFilter 返回文本视图筛选器将处理筛选职责的 delegated 的文本视图。
公共方法 Refresh 重新编译语言文件或整个项目。
公共方法 SetBufferCoordinator 即时允许在缓冲区协调员更改。
公共方法 SetHost 设置辅助语言的语言宿主。
公共方法 WaitForReadyState 调用以确保这种包含的语言准备就绪。

页首

备注

代码在较大在语言块嵌入文档通常实现除了父的文档。 此代码块的语言在编辑器中编写的 IVsContainedLanguage 接口表示要显示的代码的目的块。 IVsContainedLanguage 为显示的语法提供功能,有些 interactive 通过文本视图支持 (可以支持代码重新设置,语句完成,等等)。

对实现者的说明

实现此接口支持一个包含的语言服务功能。 ,当接口的实例从工厂,返回此接口本身通常是实现。

对调用者的说明

获取在从调用返回到 IVsContainedLanguageFactory 接口的 GetLanguage 方法的对象实现此接口。

请参阅

参考

Microsoft.VisualStudio.TextManager.Interop 命名空间