Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
A shape on a diagram that shows a view of an element in a model. Some types of model element can have more than one shape. Some shapes are composed of other shapes. For example, a class shape contains shapes for each attribute and operation. Shapes have graphical properties such as color and position.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
'Declaration
Public Interface IShape
public interface IShape
public interface class IShape
type IShape = interface end
public interface IShape
The IShape type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
![]() |
ChildShapes | Shapes that are contained within this shape. For example, the attribute and operation rows of a class shape; class shapes contained inside a package shape; ports and parts inside a component. For each ChildShape, ParentShape == this. |
![]() |
Color | Gets or sets the color of the shape. |
![]() |
Diagram | The diagram that contains this shape. |
![]() |
Height | |
![]() |
ParentShape | The shape that contains this shape, or null. If ParentShape is not null, this shape is a member of ParentShape.ChildShapes. |
![]() |
Width | |
![]() |
XPosition | |
![]() |
YPosition |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Delete | Removes the shape from the diagram. This might or might not remove from the model the element that the shape displays. For example, removing a class shape from a class diagram does not remove the UML class from the model. |
![]() |
GetObject<T> | Gets the model element represented by this shape. Supply the type of the result that you want. |
![]() |
Move | Changes the position and size of the shape. |
![]() |
ToIShape<T> | Cast to a type that specifies the type of the element that the shape represents. |
Top
Extension Methods
| Name | Description | |
|---|---|---|
![]() |
GetChildShapes<T> | Get child shapes that display the specified type of model element. (Defined by PresentationHelpers.) |
![]() |
GetElement | The model element that this shape represents. (Defined by IShapeExtensions.) |
Top
Remarks
For more information and samples, see the following topics:
See Also
Reference
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace
.gif)
.gif)
.gif)