PortPlacementHelper.OnParentShapeResized 方法

此方法在 DSL 中不再调用和已弃用。DSL 现在提供了另一个挂钩:虚方法: “OnParentNodeShapeChanged”在 Microsoft.VisualStudio.Modeling.DiagramsNodeShape 类。此方法在子 NodeShape 调用,只要父 NodeShape 移动/调整大小。

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

语法

声明
Public Overridable Sub OnParentShapeResized ( _
    parentShape As NodeShape, _
    oldBounds As RectangleD, _
    newBounds As RectangleD _
)
public virtual void OnParentShapeResized(
    NodeShape parentShape,
    RectangleD oldBounds,
    RectangleD newBounds
)

参数

备注

已弃用

.NET Framework 安全性

请参见

参考

PortPlacementHelper 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间