IVsContainedLanguage Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides simplistic contained language service features.
public interface class IVsContainedLanguage
public interface class IVsContainedLanguage
__interface IVsContainedLanguage
[System.Runtime.InteropServices.Guid("518AB114-E3C6-4BBC-A469-99279F1A54E9")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsContainedLanguage
[System.Runtime.InteropServices.Guid("518AB114-E3C6-4BBC-A469-99279F1A54E9")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsContainedLanguage
[<System.Runtime.InteropServices.Guid("518AB114-E3C6-4BBC-A469-99279F1A54E9")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsContainedLanguage = interface
[<System.Runtime.InteropServices.Guid("518AB114-E3C6-4BBC-A469-99279F1A54E9")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsContainedLanguage = interface
Public Interface IVsContainedLanguage
- Attributes
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(IVsHierarchy, UInt32, IVsTextBufferCoordinator, IVsContainedLanguage) method in the IVsContainedLanguageFactory interface.
Methods
GetColorizer(IVsColorizer) |
Returns a colorizer object for the language. |
GetLanguageServiceID(Guid) |
Returns the GUID for the full language service of the contained language. |
GetTextViewFilter(IVsIntellisenseHost, IOleCommandTarget, IVsTextViewFilter) |
Returns a text view filter to handle delegated text view filtering responsibility. |
Refresh(UInt32) |
Recompiles the language file, or the entire project. |
SetBufferCoordinator(IVsTextBufferCoordinator) |
Allows for a change in buffer coordinators on-the-fly. |
SetHost(IVsContainedLanguageHost) |
Sets the language host for the secondary language. |
WaitForReadyState() |
Called to ensure the contained language is ready. |