NodeShape.ChooseRelationship Method

Called by FixUpChildShapes() to get the relationship to create between the child shape and its parent shape.

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

Syntax

'Declaration
Protected Overrides Function ChooseRelationship ( _
    childShape As ShapeElement _
) As ShapeElement.RelationshipType
protected override ShapeElement.RelationshipType ChooseRelationship(
    ShapeElement childShape
)
protected:
virtual ShapeElement::RelationshipType ChooseRelationship(
    ShapeElement^ childShape
) override
abstract ChooseRelationship : 
        childShape:ShapeElement -> ShapeElement.RelationshipType  
override ChooseRelationship : 
        childShape:ShapeElement -> ShapeElement.RelationshipType
protected override function ChooseRelationship(
    childShape : ShapeElement
) : ShapeElement.RelationshipType

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement.RelationshipType
The relationship to create between the child shape and its parent shape.

.NET Framework Security

See Also

Reference

NodeShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace