PortPlacementHelper Class

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.Diagrams.PortPlacementHelper

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

Syntax

'Declaration
Public Class PortPlacementHelper
public class PortPlacementHelper
public ref class PortPlacementHelper
type PortPlacementHelper =  class end
public class PortPlacementHelper

The PortPlacementHelper type exposes the following members.

Constructors

  Name Description
Public method PortPlacementHelper

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method FindEmptyPortPosition
Public method FindPerimeterRotation 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
Protected methodStatic member GetBottomPortChildren(NodeShape) List of children port shapes on the bottom side of this component.
Protected methodStatic member GetBottomPortChildren(NodeShape, RectangleD)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected methodStatic member GetLeftPortChildren
Protected method GetNextEdgeChildren
Protected methodStatic member GetRightPortChildren(NodeShape)
Protected methodStatic member GetRightPortChildren(NodeShape, RectangleD)
Protected methodStatic member GetTopPortChildren List of children port shapes on the bottom side of this component.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnParentShapeResized 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 method PositionChildPort Auto place port shape.
Protected method ResizeParentShapeAsNeeded
Public method RotateOnPerimeter
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace