Search
Group.AttachToLongestHSegment Method
See Also
 



Attaches a node to an arrow so that the node stays attached to the longest horizontal segment of the arrow.

 Syntax

VB6  Copy Code

Public Sub AttachToLongestHSegment( _
    ByVal obj As Object _
)

C++  Copy Code

public:
void AttachToLongestHSegment (
    IDispatch* obj
)

 Parameters

obj
The node that should be attached to the group

 Remarks

The group will track which horizontal segment is the longest one in the arrow at any given time, and will move the attached node to the center of that segment. E.g., this could be used to ensure that a label box will always stay where there is most space for it along the arrow.

The method is intended to be used with cascading arrows (Style = asPerpendicular). When the main object is an ordinary polyline arrow, the group will choose a non-vertical segment, and not a strictly horizontal one.

 See Also