此方法在 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
)
参数
- parentShape
类型:Microsoft.VisualStudio.Modeling.Diagrams.NodeShape
parentShape
- oldBounds
类型:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
oldBounds
- newBounds
类型:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
newBounds
备注
已弃用
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。