Search
NodeLabel.SetEdgePosition Method
See Also
 





Positions this label relatively to the specified node edge.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

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 _
)

 Parameters

edge

The edge index.

dx

Horizontal offset from the edge center.

dy

Vertical offset from the edge center.

 Remarks

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