Partager via


IVsContainedLanguageHost Interface

Definition

Represents a host for contained languages.

public interface class IVsContainedLanguageHost
public interface class IVsContainedLanguageHost
__interface IVsContainedLanguageHost
[System.Runtime.InteropServices.Guid("0429916F-69E1-4336-AB7E-72086FB0D6BC")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsContainedLanguageHost
[System.Runtime.InteropServices.Guid("0429916F-69E1-4336-AB7E-72086FB0D6BC")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsContainedLanguageHost
[<System.Runtime.InteropServices.Guid("0429916F-69E1-4336-AB7E-72086FB0D6BC")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsContainedLanguageHost = interface
[<System.Runtime.InteropServices.Guid("0429916F-69E1-4336-AB7E-72086FB0D6BC")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsContainedLanguageHost = interface
Public Interface IVsContainedLanguageHost
Attributes

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(IVsContainedLanguageHost) method in the IVsContainedLanguage object that is returned from the IVsContainedLanguageFactory object.

Methods

Advise(IVsContainedLanguageHostEvents, UInt32)

Enables a client to receive messages from the source text.

CanReformatCode(Int32)

Determines if code reformatting is currently allowed.

EnsureSecondaryBufferReady()

Ensures that the secondary buffer is available and has no pending changes.

EnsureSpanVisible(TextSpan)

Ensures that span in the primary buffer is visible.

GetErrorProviderInformation(String, Guid)

Retrieves information about the error provider.

GetLineIndent(Int32, String, Int32, Int32, Int32, Int32)

Provides information on the base indent level and indent settings.

GetNearestVisibleToken(TextSpan, TextSpan[])

Returns the language token that is nearest the requested line.

GetVSHierarchy(IVsHierarchy)

Returns the hierarchy that contains the file displayed in the primary buffer.

InsertControl(String, String)

Sends a request to insert markup.

InsertImportsDirective(UInt16)

Inserts a markup tag that imports the specified namespace.

InsertReference(UInt16)

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(ContainedLanguageRenameType, String, String)

Called to notify the editor that a name has been changed.

QueryEditFile()

Determines if the secondary buffer can be modified.

Unadvise(UInt32)

Called by a client that is no longer interested in receiving notifications from the editor.

Applies to