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
)
參數
- parentShape
型別:Microsoft.VisualStudio.Modeling.Diagrams.NodeShape
parentShape
- oldBounds
型別:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
oldBounds
- newBounds
型別:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
newBounds
備註
已取代
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。