Diagram::IsOrphaned Method (ShapeElement^)
Visual Studio 2015
Verifies whether a shape is linked to another shape in the diagram.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Parameters
- shapeElement
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::ShapeElement^
The shape to check.
Return Value
Type: System::Booleantrue if the shape is not linked to another shape in the diagram; otherwise, false.
If the return value is true, the shape is removed from the diagram.
When this method analyzes a shape, it removes the shape if it does not have a link shape.
public void OnShape(DslDiagrams::ShapeElement shape) { if (this.diagram.IsOrphaned(shape)) this.orphanedShapes.Add(shape); }
Show: