IVsContainedLanguageHostEvents.OnViewChange Method

Called when the view has changed.

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

Syntax

'Déclaration
Function OnViewChange ( _
    fTextView As Integer _
) As Integer
'Utilisation
Dim instance As IVsContainedLanguageHostEvents
Dim fTextView As Integer
Dim returnValue As Integer

returnValue = instance.OnViewChange(fTextView)
int OnViewChange(
    int fTextView
)
int OnViewChange(
    [InAttribute] int fTextView
)
abstract OnViewChange : 
        fTextView:int -> int 
function OnViewChange(
    fTextView : int
) : int

Parameters

  • fTextView
    Type: System.Int32
    [in] Nonzero (TRUE) if the view is text-based; otherwise, zero (FALSE), the view is graphical (typically a designer window).

Return Value

Type: System.Int32
Should always return S_OK (the return value is typically ignored by the contained language host).

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT OnViewChange(
   [in] BOOL fTextView
);

.NET Framework Security

See Also

Reference

IVsContainedLanguageHostEvents Interface

IVsContainedLanguageHostEvents Members

Microsoft.VisualStudio.TextManager.Interop Namespace