Search
LinkTextStyle Enumeration
See Also
 






Specifies the position and alignment of links' labels.

Namespace: MindFusion.Diagramming
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
LinkTextStyle = {}

 Members

  Member name Description

Center

The text is displayed horizontally above the middle link segment or control point, depending on whetherthere are an odd or even number of segments.

Follow

The label text starts from the first point of the link and follows the path defined by the link segments. This style is useful for displaying long text.

MiddleSegment

The text is displayed horizontally above the middle link segment. If there are an even number of segments, the label is drawn over the longer from the two segments adjacent to the middle control point.

MiddleSegmentRotated

The text is displayed rotated at the same angle as the segment where the text is placed. A long enough segmentfrom the middle link segments is chosen for that purpose.

OverLongestSegment

The text follows the longest link segment and is displayed centered at the segment's middle point.

Rotate

The text is displayed rotated at the same angle as the segment where the text is placed.A long enough segment from the middle link segments is chosen for that purpose.

 Remarks

Members of this enumeration can be assigned to the textStyle property of DiagramLink.

 See Also