Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ShapeElement.OnOrphaned Method

Called when a

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
public virtual void OnOrphaned(
	SerializationResult serializationResult


Type: Microsoft.VisualStudio.Modeling.SerializationResult

The serialization warning or error to display if an orphan is found.

A shape is an orphan if it is not linked to a parent shape. The diagram is checked for orphans during deserialization. By default, orphans are removed from the diagram.

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)

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.