共用方式為


DslDefinitionModelSerializationHelperBase.CheckForOrphanedShapes Method

Definition

Go through the diagram to find all shapes that are not connected to a model element. Some of them may be by design, the rest are out-of-sync shapes. We want to make sure that all out-of-sync shapes are given a chance to fix themselves up, or post proper warning/error messages.

protected:
 virtual void CheckForOrphanedShapes(Microsoft::VisualStudio::Modeling::Diagrams::Diagram ^ diagram, Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult);
protected virtual void CheckForOrphanedShapes (Microsoft.VisualStudio.Modeling.Diagrams.Diagram diagram, Microsoft.VisualStudio.Modeling.SerializationResult serializationResult);
abstract member CheckForOrphanedShapes : Microsoft.VisualStudio.Modeling.Diagrams.Diagram * Microsoft.VisualStudio.Modeling.SerializationResult -> unit
override this.CheckForOrphanedShapes : Microsoft.VisualStudio.Modeling.Diagrams.Diagram * Microsoft.VisualStudio.Modeling.SerializationResult -> unit
Protected Overridable Sub CheckForOrphanedShapes (diagram As Diagram, serializationResult As SerializationResult)

Parameters

diagram
Diagram

The diagram of which the shapes are being checked.

serializationResult
SerializationResult

SerializationResult to store warning/error in case an orphaned shape choose to do so.

Applies to