Search
NodeLabel.SetCornerPosition Method
See Also
 





Positions this label relatively to the specified corner point.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void SetCornerPosition (
    int cornerPoint,
    float dx,
    float dy
)

Visual Basic  Copy Code

Public Sub SetCornerPosition( _
    cornerPoint As Integer, _
    dx As Single, _
    dy As Single _
)

 Parameters

cornerPoint

The corner point index.

dx

Horizontal offset from the point.

dy

Vertical offset from the point.

 Remarks

This method sets node's corner as label's pin point and assigns specified offsets to HorizontalOffset and VerticalOffset properties. The cornerPoint index starts counting from top-left corner in clockwise direction:

  • 0 desigates top-left corner;
  • 1 desigates top-right corner;
  • 2 desigates bottom-right corner;
  • 3 desigates bottom-left corner;

 See Also