PresentationHelpers Class

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

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

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

public static class PresentationHelpers

The PresentationHelpers type exposes the following members.

  NameDescription
Public methodStatic memberCreateIDiagramWrap 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.
Public methodStatic memberCreateIShapeWrap 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.
Public methodStatic memberDiagramsAll the open diagrams in the model, of a particular type if specified.
Public methodStatic memberGetChildShapes<T>Get child shapes that display the specified type of model element.
Public methodStatic memberGetElementThe UML model element displayed by this ShapeElement.
Public methodStatic memberGetSelectedShapes<T>Get all the selected shapes that display UML model elements of the specified type.
Public methodStatic memberIsSameDiagramVerify whether two UML diagram references refer to the same diagram. Use this instead of ==.
Public methodStatic memberSelectShapesSelect a collection of shapes on the diagram. The shapes must be selectable. The diagram's SelectedShapes property will be updated.
Public methodStatic memberShapes(IElement, IDiagram)All the shapes that display the model element on any open diagram, or on a specified open diagram.
Public methodStatic memberShapes<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.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft