Compartir a través de


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

Syntax

'Declaración
<CLSCompliantAttribute(False)> _
Public Function FindAndOpenDocView ( _
    logicalView As Guid, _
    diagram As Diagram _
) As ModelingDocView
[CLSCompliantAttribute(false)]
public ModelingDocView FindAndOpenDocView(
    Guid logicalView,
    Diagram diagram
)
[CLSCompliantAttribute(false)]
public:
ModelingDocView^ FindAndOpenDocView(
    Guid logicalView, 
    Diagram^ diagram
)
[<CLSCompliantAttribute(false)>]
member FindAndOpenDocView : 
        logicalView:Guid * 
        diagram:Diagram -> ModelingDocView 
public function FindAndOpenDocView(
    logicalView : Guid, 
    diagram : Diagram
) : ModelingDocView

Parameters

  • logicalView
    Type: System.Guid
    ID of the diagram's logical view.

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.ModelingDocView

.NET Framework Security

See Also

Reference

ModelElementLocator Class

Microsoft.VisualStudio.Modeling.Shell Namespace