Partager via


PortPlacementHelper.OnParentShapeResized Method

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.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Déclaration
Public Overridable Sub OnParentShapeResized ( _
    parentShape As NodeShape, _
    oldBounds As RectangleD, _
    newBounds As RectangleD _
)
public virtual void OnParentShapeResized(
    NodeShape parentShape,
    RectangleD oldBounds,
    RectangleD newBounds
)
public:
virtual void OnParentShapeResized(
    NodeShape^ parentShape, 
    RectangleD oldBounds, 
    RectangleD newBounds
)
abstract OnParentShapeResized : 
        parentShape:NodeShape * 
        oldBounds:RectangleD * 
        newBounds:RectangleD -> unit 
override OnParentShapeResized : 
        parentShape:NodeShape * 
        oldBounds:RectangleD * 
        newBounds:RectangleD -> unit 
public function OnParentShapeResized(
    parentShape : NodeShape, 
    oldBounds : RectangleD, 
    newBounds : RectangleD
)

Parameters

Remarks

deprecated

.NET Framework Security

See Also

Reference

PortPlacementHelper Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace