共用方式為


PortPlacementHelper.OnParentShapeResized 方法

這個方法不會再叫用 DSL 內,而且已被取代。DSL 現在提供另一個攔截程序: 虛擬方法: 在 Microsoft.VisualStudio.Modeling.DiagramsNodeShape 類別上的"OnParentNodeShapeChanged"。只要父 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 命名空間