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