Partager via


IVsContainedLanguage Interface

Provides simplistic contained language service features.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Déclaration
<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

The IVsContainedLanguage type exposes the following members.

Methods

  Name Description
Public method GetColorizer Returns a colorizer object for the language.
Public method GetLanguageServiceID Returns the GUID for the full language service of the contained language.
Public method GetTextViewFilter Returns a text view filter to handle delegated text view filtering responsibility.
Public method Refresh Recompiles the language file, or the entire project.
Public method SetBufferCoordinator Allows for a change in buffer coordinators on-the-fly.
Public method SetHost Sets the language host for the secondary language.
Public method WaitForReadyState Called to ensure the contained language is ready.

Top

Remarks

A code block embedded in a larger document is typically implemented in a language other than the parent document. The language this code block is written in is represented by the IVsContainedLanguage interface for purposes of displaying the code block in the editor. The IVsContainedLanguage provides functionality for syntax highlighting and some interactive support through the text view (possibly to support code reformatting, statement completion, and so on).

Notes to Implementers

Implement this interface to support a contained language service feature. This interface is typically implemented on its own class as an instance of the interface is returned from a factory.

Notes to Callers

Obtain this interface implemented on an object that is returned from a call to the GetLanguage method in the IVsContainedLanguageFactory interface.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace