Compartir a través de


PortPlacementHelper.OnParentShapeResized Method

Definition

This method is no longer invoked within DSL and is deprecated. DSL now provides another hook: a virtual method:"OnParentNodeShapeChanged" on Microsoft.VisualStudio.Modeling.DiagramsNodeShape class. This method is invoked on a child NodeShape whenever the Parent NodeShape is moved/resized.

public:
 virtual void OnParentShapeResized(Microsoft::VisualStudio::Modeling::Diagrams::NodeShape ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD oldBounds, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD newBounds);
public virtual void OnParentShapeResized (Microsoft.VisualStudio.Modeling.Diagrams.NodeShape parentShape, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD oldBounds, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD newBounds);
abstract member OnParentShapeResized : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> unit
override this.OnParentShapeResized : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> unit
Public Overridable Sub OnParentShapeResized (parentShape As NodeShape, oldBounds As RectangleD, newBounds As RectangleD)

Parameters

parentShape
NodeShape

parentShape

oldBounds
RectangleD

oldBounds

newBounds
RectangleD

newBounds

Remarks

deprecated

Applies to