Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IShape Interface

 

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)

public interface IShape

NameDescription
System_CAPS_pubpropertyChildShapes

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.

System_CAPS_pubpropertyColor

Gets or sets the color of the shape.

System_CAPS_pubpropertyDiagram

The diagram that contains this shape.

System_CAPS_pubpropertyHeight

System_CAPS_pubpropertyParentShape

The shape that contains this shape, or null. If ParentShape is not null, this shape is a member of ParentShape.ChildShapes.

System_CAPS_pubpropertyWidth

System_CAPS_pubpropertyXPosition

System_CAPS_pubpropertyYPosition

NameDescription
System_CAPS_pubmethodDelete()

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.

System_CAPS_pubmethodGetObject<T>()

Gets the model element represented by this shape. Supply the type of the result that you want.

System_CAPS_pubmethodMove(Double, Double, Double, Double)

Changes the position and size of the shape.

System_CAPS_pubmethodToIShape<T>()

Cast to a type that specifies the type of the element that the shape represents.

NameDescription
System_CAPS_pubmethodGetChildShapes<T>()

Get child shapes that display the specified type of model element.(Defined by PresentationHelpers.)

System_CAPS_pubmethodGetElement()

The model element that this shape represents.(Defined by IShapeExtensions.)

Return to top
Show: