Compartilhar via


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

'Declaração
Function OnViewChange ( _
    fTextView As Integer _
) As Integer
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

Microsoft.VisualStudio.TextManager.Interop Namespace