共用方式為


IVsContainedLanguageHost.OnContainedLanguageEditorSettingsChange Method

Called to notify the host when the contained language changes its Fonts and Colors settings.

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

Syntax

'宣告
Function OnContainedLanguageEditorSettingsChange As Integer
'用途
Dim instance As IVsContainedLanguageHost
Dim returnValue As Integer

returnValue = instance.OnContainedLanguageEditorSettingsChange()
int OnContainedLanguageEditorSettingsChange()
int OnContainedLanguageEditorSettingsChange()
abstract OnContainedLanguageEditorSettingsChange : unit -> int 
function OnContainedLanguageEditorSettingsChange() : int

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT OnContainedLanguageEditorSettingsChange();

If a contained language changes its editor settings (specifically, colors), there is no way for the editor to be notified by Visual Studio about the change. Therefore, the contained language must notify the host whenever its Fonts and Colors settings change.

.NET Framework Security

See Also

Reference

IVsContainedLanguageHost Interface

IVsContainedLanguageHost Members

Microsoft.VisualStudio.TextManager.Interop Namespace