Dela via


PresentationHelpers.Diagrams Method

All the open diagrams in the model, of a particular type if specified.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Diagrams ( _
    modelStore As IModelStore, _
    typeName As String _
) As IEnumerable(Of IDiagram)
public static IEnumerable<IDiagram> Diagrams(
    this IModelStore modelStore,
    string typeName
)
[ExtensionAttribute]
public:
static IEnumerable<IDiagram^>^ Diagrams(
    IModelStore^ modelStore, 
    String^ typeName
)
static member Diagrams : 
        modelStore:IModelStore * 
        typeName:string -> IEnumerable<IDiagram> 
public static function Diagrams(
    modelStore : IModelStore, 
    typeName : String
) : IEnumerable<IDiagram>

Parameters

  • typeName
    Type: System.String

    Omit to return all diagrams. If not empty, only diagrams with the specified TypeName are returned.

Return Value

Type: System.Collections.Generic.IEnumerable<IDiagram>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IModelStore. 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).

Remarks

For more information, see:

.NET Framework Security

See Also

Reference

PresentationHelpers Class

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace