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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
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
- parent
Type: Microsoft.VisualStudio.Modeling.Diagrams.NodeShape
parent NodeShape
- portBounds
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
port Bounds
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.