IVsContainedLanguageHost Interface
Represents a host for contained languages.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'宣告
<InterfaceTypeAttribute()> _
<GuidAttribute("0429916F-69E1-4336-AB7E-72086FB0D6BC")> _
Public Interface IVsContainedLanguageHost
[InterfaceTypeAttribute()]
[GuidAttribute("0429916F-69E1-4336-AB7E-72086FB0D6BC")]
public interface IVsContainedLanguageHost
[InterfaceTypeAttribute()]
[GuidAttribute(L"0429916F-69E1-4336-AB7E-72086FB0D6BC")]
public interface class IVsContainedLanguageHost
[<InterfaceTypeAttribute()>]
[<GuidAttribute("0429916F-69E1-4336-AB7E-72086FB0D6BC")>]
type IVsContainedLanguageHost = interface end
public interface IVsContainedLanguageHost
The IVsContainedLanguageHost type exposes the following members.
Methods
Name | Description | |
---|---|---|
Advise | Enables a client to receive messages from the source text. | |
CanReformatCode | Determines if code reformatting is currently allowed. | |
EnsureSecondaryBufferReady | Ensures that the secondary buffer is available and has no pending changes. | |
EnsureSpanVisible | Ensures that span in the primary buffer is visible. | |
GetErrorProviderInformation | Retrieves information about the error provider. | |
GetLineIndent | Provides information on the base indent level and indent settings. | |
GetNearestVisibleToken | Returns the language token that is nearest the requested line. | |
GetVSHierarchy | Returns the hierarchy that contains the file displayed in the primary buffer. | |
InsertControl | Sends a request to insert markup. | |
InsertImportsDirective | Inserts a markup tag that imports the specified namespace. | |
InsertReference | Adds an assembly that is currently in the global assembly cache (GAC). | |
OnContainedLanguageEditorSettingsChange | Called to notify the host when the contained language changes its Fonts and Colors settings. | |
OnRenamed | Called to notify the editor that a name has been changed. | |
QueryEditFile | Determines if the secondary buffer can be modified. | |
Unadvise | Called by a client that is no longer interested in receiving notifications from the editor. |
Top
Remarks
This interface is implemented by editors that support contained languages, that is, code blocks that can be embedded in a larger document. For example, an HTML document can contain script elements from different languages such as Visual Basic or JScript.
Notes to Implementers
This interface is implemented by an editor to coordinate with an IVsContainedLanguage object.
Notes to Callers
This interface is passed by the editor to the SetHost method in the IVsContainedLanguage object that is returned from the IVsContainedLanguageFactory object.