ModelElementLocator.FindAndOpenDocView Method

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.

This API is not CLS-compliant. 

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


<CLSCompliantAttribute(False)> _
Public Function FindAndOpenDocView ( _
    logicalView As Guid, _
    diagram As Diagram _
) As ModelingDocView
public ModelingDocView FindAndOpenDocView(
    Guid logicalView,
    Diagram diagram
ModelingDocView^ FindAndOpenDocView(
    Guid logicalView, 
    Diagram^ diagram
member FindAndOpenDocView : 
        logicalView:Guid * 
        diagram:Diagram -> ModelingDocView
public function FindAndOpenDocView(
    logicalView : Guid, 
    diagram : Diagram
) : ModelingDocView


  • logicalView
    Type: Guid

    ID of the diagram's logical view.

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.ModelingDocView

.NET Framework Security

See Also


ModelElementLocator Class

Microsoft.VisualStudio.Modeling.Shell Namespace