Port::GetChildPortPlacement Method (RectangleD, RectangleD)

 

PortPlacement Determining Logic is encapsulated in this method.

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

public:
virtual PortPlacement GetChildPortPlacement(
	RectangleD parentShapeDimensions,
	RectangleD childShapeRelativeBounds
)

Parameters

parentShapeDimensions
Type: Microsoft.VisualStudio.Modeling.Diagrams::RectangleD

Only the width and height are used since the other parameter is relative.

childShapeRelativeBounds
Type: Microsoft.VisualStudio.Modeling.Diagrams::RectangleD

relativeBounds of child with respect to parent

Return to top
Show: