다음을 통해 공유


PortPlacementHelper Class

Definition

public ref class PortPlacementHelper
public class PortPlacementHelper
type PortPlacementHelper = class
Public Class PortPlacementHelper
Inheritance
PortPlacementHelper

Constructors

PortPlacementHelper()

Methods

FindEmptyPortPosition(Port, NodeShape)
FindPerimeterRotation(NodeShape, RectangleD, PortPlacement, RectangleD, PortPlacement)

Given initial and final bounds of the port, find the rotation distance on the perimeter of the component and the rotation direction. Clockwise is positive and anticlockwise is negative. Assumption: initialBounds and finalBounds are a small delta apart. Hence called between two GetCompliantBounds calls

GetBottomPortChildren(NodeShape, RectangleD)
GetBottomPortChildren(NodeShape)

List of children port shapes on the bottom side of this component.

GetLeftPortChildren(NodeShape)
GetNextEdgeChildren(PortPlacement, NodeShape, ArrayList, PointD)
GetRightPortChildren(NodeShape, RectangleD)
GetRightPortChildren(NodeShape)
GetTopPortChildren(NodeShape)

List of children port shapes on the bottom side of this component.

OnParentShapeResized(NodeShape, RectangleD, RectangleD)

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.

PositionChildPort(Port, NodeShape)

Auto place port shape.

ResizeParentShapeAsNeeded(PointD, Port, NodeShape)
RotateOnPerimeter(NodeShape, RectangleD, Double, PortPlacement)

Applies to