PresentationHelpers Class

 

Static class that provides extension methods for modeling diagrams and shapes.

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.PresentationHelpers

Syntax

public static class PresentationHelpers
[ExtensionAttribute]
public ref class PresentationHelpers abstract sealed 
[<AbstractClass>]
[<Sealed>]
type PresentationHelpers = class end
<ExtensionAttribute>
Public NotInheritable Class PresentationHelpers

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static CreateIDiagram(Diagram)

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.

System_CAPS_pubmethodSystem_CAPS_static CreateIShape(ShapeElement, ShapeField, ShapeSubField)

Wrap a ShapeElement from the underlying implementation so that it can be used as a UML modeling IShape. This does not construct or modify a shape. Instead, it provides a convenient reference to an existing shape, or a field within a shape.

System_CAPS_pubmethodSystem_CAPS_static Diagrams(IModelStore, String)

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

System_CAPS_pubmethodSystem_CAPS_static GetChildShapes<T>(IShape)

Get child shapes that display the specified type of model element.

System_CAPS_pubmethodSystem_CAPS_static GetElement(ShapeElement)

The UML model element displayed by this ShapeElement.

System_CAPS_pubmethodSystem_CAPS_static GetSelectedShapes<T>(IDiagram)

Get all the selected shapes that display UML model elements of the specified type.

System_CAPS_pubmethodSystem_CAPS_static IsSameDiagram(IDiagram, IDiagram)

Verify whether two UML diagram references refer to the same diagram. Use this instead of ==.

System_CAPS_pubmethodSystem_CAPS_static SelectShapes(IDiagram, IShape[])

Select a collection of shapes on the diagram. The shapes must be selectable. The diagram's SelectedShapes property will be updated.

System_CAPS_pubmethodSystem_CAPS_static Shapes(IElement, IDiagram)

All the shapes that display the model element on any open diagram, or on a specified open diagram.

System_CAPS_pubmethodSystem_CAPS_static Shapes<T>(T, IDiagram)

All the shapes that display the model element on any open diagram, or on a specified open diagram. Returns a list of shapes of the specified type.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace

Return to top