Diagram.FixUpDiagram Method
Visual Studio 2005
Ensures that the shape and its parent shapes are created and configured correctly.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in microsoft.visualstudio.modeling.diagrams.dll)
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in microsoft.visualstudio.modeling.diagrams.dll)
public static void FixUpDiagram ( ModelElement existingParent, ModelElement newChild )
public static function FixUpDiagram ( existingParent : ModelElement, newChild : ModelElement )
Parameters
- existingParent
The parent shape that is linked either directly or indirectly to the specified shape in the hierarchy.
- newChild
The child shape that is linked either directly or indirectly to the specified parent shape.
Call this method if the new child shape has parent shapes associated with it in the diagram. A parent shape does not need a direct link to its child element. For example, a parent element can be the parent of the parent of the child element.
Prior to selecting any shapes in the diagram, the current selection is cleared. This is done one time for each diagram in the current transaction. The effect is that all new shapes added in the same transaction are added to the diagram's current selection.