Compartilhar via


Port.GetChildPortPlacement Method

Definition

Overloads

GetChildPortPlacement(NodeShape, RectangleD)

Returns the edge on the given parent and given port bounds. This method internally calls GetChildPortPlacement(RectangleD parentShapeDimensions, RectangleD childShapeRelativeBounds) To override behavior for this method, override GetChildPortPlacement(RectangleD parentShapeDimensions, RectangleD childShapeRelativeBounds)

GetChildPortPlacement(RectangleD, RectangleD)

PortPlacement Determining Logic is encapsulated in this method.

GetChildPortPlacement(NodeShape, RectangleD)

Returns the edge on the given parent and given port bounds. This method internally calls GetChildPortPlacement(RectangleD parentShapeDimensions, RectangleD childShapeRelativeBounds) To override behavior for this method, override GetChildPortPlacement(RectangleD parentShapeDimensions, RectangleD childShapeRelativeBounds)

public:
 Microsoft::VisualStudio::Modeling::Diagrams::PortPlacement GetChildPortPlacement(Microsoft::VisualStudio::Modeling::Diagrams::NodeShape ^ parent, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD portBounds);
public Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement GetChildPortPlacement (Microsoft.VisualStudio.Modeling.Diagrams.NodeShape parent, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD portBounds);
member this.GetChildPortPlacement : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement
Public Function GetChildPortPlacement (parent As NodeShape, portBounds As RectangleD) As PortPlacement

Parameters

parent
NodeShape

parent NodeShape

portBounds
RectangleD

port Bounds

Returns

PortPlacement

Applies to

GetChildPortPlacement(RectangleD, RectangleD)

PortPlacement Determining Logic is encapsulated in this method.

public:
 virtual Microsoft::VisualStudio::Modeling::Diagrams::PortPlacement GetChildPortPlacement(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD parentShapeDimensions, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD childShapeRelativeBounds);
public virtual Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement GetChildPortPlacement (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD parentShapeDimensions, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD childShapeRelativeBounds);
abstract member GetChildPortPlacement : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement
override this.GetChildPortPlacement : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement
Public Overridable Function GetChildPortPlacement (parentShapeDimensions As RectangleD, childShapeRelativeBounds As RectangleD) As PortPlacement

Parameters

parentShapeDimensions
RectangleD

Only the width and height are used since the other parameter is relative.

childShapeRelativeBounds
RectangleD

relativeBounds of child with respect to parent

Returns

PortPlacment

Applies to