Condividi tramite


Port.GetChildPortPlacement Method (NodeShape, RectangleD)

Returns the edge on the given parent and given port bounds. This method internally calls GetChildPortPlacement(RectangleD parentShapeDimensions, RectangleD childShapeRelativeBounds) To override behavior for this method, override GetChildPortPlacement(RectangleD parentShapeDimensions, RectangleD childShapeRelativeBounds)

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

Syntax

'Declaration
Public Function GetChildPortPlacement ( _
    parent As NodeShape, _
    portBounds As RectangleD _
) As PortPlacement
public PortPlacement GetChildPortPlacement(
    NodeShape parent,
    RectangleD portBounds
)
public:
PortPlacement GetChildPortPlacement(
    NodeShape^ parent, 
    RectangleD portBounds
)
member GetChildPortPlacement : 
        parent:NodeShape * 
        portBounds:RectangleD -> PortPlacement
public function GetChildPortPlacement(
    parent : NodeShape, 
    portBounds : RectangleD
) : PortPlacement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement

.NET Framework Security

See Also

Reference

Port Class

GetChildPortPlacement Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace