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 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Protected Overrides Sub OnDocumentWindowChanged ( _
    oldView As ModelingDocView, _
    newView As ModelingDocView _
)
'使用
Dim oldView As ModelingDocView
Dim newView As ModelingDocView

Me.OnDocumentWindowChanged(oldView, _
    newView)
protected override void OnDocumentWindowChanged(
    ModelingDocView oldView,
    ModelingDocView newView
)
protected:
virtual void OnDocumentWindowChanged(
    ModelingDocView^ oldView, 
    ModelingDocView^ newView
) override
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 a null reference (Nothing in Visual Basic) if the document window is a type that the modeling shell infrastructure does not support.

Permissions

See Also

Reference

ModelExplorerToolWindow Class

ModelExplorerToolWindow Members

Microsoft.VisualStudio.Modeling.Shell Namespace