NodeLabel.SetEdgePosition Method
See Also

Positions this label relatively to the specified node edge.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming


C#  Copy Code

public void SetEdgePosition (
    int edge,
    float dx,
    float dy

Visual Basic  Copy Code

Public Sub SetEdgePosition( _
    edge As Integer, _
    dx As Single, _
    dy As Single _



The edge index.


Horizontal offset from the edge center.


Vertical offset from the edge center.


This method sets the middle point of node's edge as label's pin point and assigns specified offsets to HorizontalOffset and VerticalOffset properties. The edge index starts counting from top side in clockwise direction:

  • 0 desigates center of top edge;
  • 1 desigates center of right edge;
  • 2 desigates center of bottom edge;
  • 3 desigates center of left edge;

 See Also