Partager via


ShapeElement.ChooseRelationship Method

Selects which child list a new child shape should be added to – NestedChildShapes or RelativeChildShapes.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Déclaration
Protected Overridable Function ChooseRelationship ( _
    childShape As ShapeElement _
) As ShapeElement..::..RelationshipType
protected virtual ShapeElement..::..RelationshipType ChooseRelationship(
    ShapeElement childShape
)
protected:
virtual ShapeElement..::..RelationshipType ChooseRelationship(
    ShapeElement^ childShape
)
abstract ChooseRelationship : 
        childShape:ShapeElement -> ShapeElement..::..RelationshipType 
override ChooseRelationship : 
        childShape:ShapeElement -> ShapeElement..::..RelationshipType 
protected function ChooseRelationship(
    childShape : ShapeElement
) : ShapeElement..::..RelationshipType

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement.RelationshipType
An enumerated value indicating which set the shape should belong to.

Remarks

For more information, see FixUpChildShapes(ModelElement).

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace