Search
NodeLabel.SetEdgePosition Method
See Also
 



Positions this label relatively to the specified node edge.

 Syntax

VB6  Copy Code

Public Sub SetEdgePosition( _
    ByVal edge As Long, _
    ByVal dx As Single, _
    ByVal dy As Single _
)

C++  Copy Code

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

 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