Diagram.FixUpDiagram Method
Ensures that the shape and its parent shapes are created and configured correctly.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
‘선언
Public Shared Sub FixUpDiagram ( _
existingParent As ModelElement, _
newChild As ModelElement _
)
public static void FixUpDiagram(
ModelElement existingParent,
ModelElement newChild
)
public:
static void FixUpDiagram(
ModelElement^ existingParent,
ModelElement^ newChild
)
static member FixUpDiagram :
existingParent:ModelElement *
newChild:ModelElement -> unit
public static function FixUpDiagram(
existingParent : ModelElement,
newChild : ModelElement
)
Parameters
- existingParent
Type: Microsoft.VisualStudio.Modeling.ModelElement
The parent shape that is linked either directly or indirectly to the specified shape in the hierarchy.
- newChild
Type: Microsoft.VisualStudio.Modeling.ModelElement
The child shape that is linked either directly or indirectly to the specified parent shape.
Remarks
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.
Before any shapes in the diagram are selected, the current selection is cleared. This action is performed one time for each diagram in the current transaction. Therefore, all shapes that are added in the same transaction are added to the diagram's current selection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.