Partager via


ModelExplorerToolWindow.OnDocumentWindowChanged Method

Notifies derived classes if a change is made in the document window.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Déclaration
Protected Overrides Sub OnDocumentWindowChanged ( _
    oldView As ModelingDocView, _
    newView As ModelingDocView _
)
protected override void OnDocumentWindowChanged(
    ModelingDocView oldView,
    ModelingDocView newView
)
protected:
virtual void OnDocumentWindowChanged(
    ModelingDocView^ oldView, 
    ModelingDocView^ newView
) override
abstract OnDocumentWindowChanged : 
        oldView:ModelingDocView * 
        newView:ModelingDocView -> unit 
override OnDocumentWindowChanged : 
        oldView:ModelingDocView * 
        newView:ModelingDocView -> unit 
protected override function OnDocumentWindowChanged(
    oldView : ModelingDocView, 
    newView : ModelingDocView
)

Parameters

Remarks

This method is helpful if you want to create a tool window that tracks the current document and displays another view of this document. This method is called when the tool window is first created and again when the document window changes. The oldView and newView parameters can be nulla null reference (Nothing in Visual Basic) if the document window is a type that the modeling shell infrastructure does not support.

.NET Framework Security

See Also

Reference

ModelExplorerToolWindow Class

Microsoft.VisualStudio.Modeling.Shell Namespace