ShapeElement.OnOrphaned Method
Called when a
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
protected virtual void CheckForOrphanedShapes(DslDiagrams::Diagram diagram, DslModeling::SerializationResult serializationResult) { global::System.Collections.Generic.List<DslDiagrams::ShapeElement> orphanedShapes = new global::System.Collections.Generic.List<DslDiagrams::ShapeElement>(); diagram.IterateShapes(new OrphanedShapeIterator(orphanedShapes, diagram)); foreach (DslDiagrams::ShapeElement orphanedShape in orphanedShapes) { if (serializationResult.Failed) break; orphanedShape.OnOrphaned(serializationResult); } }
- 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.