Port.GetChildPortPlacement 方法 (NodeShape, RectangleD)

返回在给定父级和给定端口边界的边缘。 此方法内部调用 GetChildPortPlacement (RectangleD parentShapeDimensions,RectangleD childShapeRelativeBounds) 。若要重写此方法的行为,则重写 GetChildPortPlacement (RectangleD parentShapeDimensions,RectangleD childShapeRelativeBounds)

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

语法

声明
Public Function GetChildPortPlacement ( _
    parent As NodeShape, _
    portBounds As RectangleD _
) As PortPlacement
public PortPlacement GetChildPortPlacement(
    NodeShape parent,
    RectangleD portBounds
)

参数

返回值

类型:Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement

.NET Framework 安全性

请参阅

参考

Port 类

GetChildPortPlacement 重载

Microsoft.VisualStudio.Modeling.Diagrams 命名空间