Share via


PresentationHelpers.CreateIDiagram Method

Wrap a diagram from the underlying implementation so that it can be used as a UML modeling diagram. This method does not construct or modify a diagram, but instead provides a convenient reference to an existing diagram.

Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateIDiagram ( _
    diagram As Diagram _
) As IDiagram
public static IDiagram CreateIDiagram(
    this Diagram diagram
)
[ExtensionAttribute]
public:
static IDiagram^ CreateIDiagram(
    Diagram^ diagram
)
static member CreateIDiagram : 
        diagram:Diagram -> IDiagram
public static function CreateIDiagram(
    diagram : Diagram
) : IDiagram

Parameters

Return Value

Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IDiagram
For more information, see How to: Open a UML Model by Using the Visual Studio API.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Diagram. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

PresentationHelpers Class

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace