ModelElementLocator.FindDocView Method
Finds a ModelingDocView displaying this diagam (if one exists). May return null.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Function FindDocView ( _
logicalView As Guid, _
diagram As Diagram _
) As ModelingDocView
[CLSCompliantAttribute(false)]
public ModelingDocView FindDocView(
Guid logicalView,
Diagram diagram
)
[CLSCompliantAttribute(false)]
public:
ModelingDocView^ FindDocView(
Guid logicalView,
Diagram^ diagram
)
[<CLSCompliantAttribute(false)>]
member FindDocView :
logicalView:Guid *
diagram:Diagram -> ModelingDocView
public function FindDocView(
logicalView : Guid,
diagram : Diagram
) : ModelingDocView
Parameters
logicalView
Type: System.GuidGuid for the diagram's logical view.
diagram
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramDiagram for which containing docData is needed.
Return Value
Type: Microsoft.VisualStudio.Modeling.Shell.ModelingDocView
.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.