PortPlacementHelper.OnParentShapeResized 方法

不再在 DSL 中调用此方法(已弃用)。 DSL 现在提供了另一个挂钩:一个虚拟方法: 用于 Microsoft.VisualStudio.Modeling.DiagramsNodeShape 类的 "OnParentNodeShapeChanged"。 每当移动/调整 NodeShape 时,在子 NodeShape 上调用此方法。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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
)

参数

备注

deprecated

.NET Framework 安全性

请参阅

参考

PortPlacementHelper 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间