Share via


ModelElementLocator.FindAndOpenDocView(Guid, Diagram) Method

Definition

Important

This API is not CLS-compliant.

Finds a ModelingDocView displaying this diagam. If the DocView cannot be found in already-opened views, then open the views on each candidate DocData. May return null.

public:
 Microsoft::VisualStudio::Modeling::Shell::ModelingDocView ^ FindAndOpenDocView(Guid logicalView, Microsoft::VisualStudio::Modeling::Diagrams::Diagram ^ diagram);
[System.CLSCompliant(false)]
public Microsoft.VisualStudio.Modeling.Shell.ModelingDocView FindAndOpenDocView (Guid logicalView, Microsoft.VisualStudio.Modeling.Diagrams.Diagram diagram);
public Microsoft.VisualStudio.Modeling.Shell.ModelingDocView FindAndOpenDocView (Guid logicalView, Microsoft.VisualStudio.Modeling.Diagrams.Diagram diagram);
[<System.CLSCompliant(false)>]
member this.FindAndOpenDocView : Guid * Microsoft.VisualStudio.Modeling.Diagrams.Diagram -> Microsoft.VisualStudio.Modeling.Shell.ModelingDocView
member this.FindAndOpenDocView : Guid * Microsoft.VisualStudio.Modeling.Diagrams.Diagram -> Microsoft.VisualStudio.Modeling.Shell.ModelingDocView
Public Function FindAndOpenDocView (logicalView As Guid, diagram As Diagram) As ModelingDocView

Parameters

logicalView
Guid

Guid for the diagram's logical view

diagram
Diagram

diagram for which containing docData is need

Returns

ModelingDocView displaying the supplied diagram. May return null.

Attributes

Applies to