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
- oldView
Type: Microsoft.VisualStudio.Modeling.Shell.ModelingDocView
The view for the document window in the previous frame.
- newView
Type: Microsoft.VisualStudio.Modeling.Shell.ModelingDocView
The view for the document window in the current frame.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.