Search
DiagramNode.AttachTo Method (DiagramLink, AttachToLink, Int32)
See Also
 





Attaches this node to a point or a segment of the specified link.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public void AttachTo (
    DiagramLink link,
    AttachToLink attType,
    int index
)

Visual Basic  Copy Code

Public Sub AttachTo( _
    link As DiagramLink, _
    attType As AttachToLink, _
    index As Integer _
)

 Parameters

link
A DiagramLink to whose control point or segment to attach this node.
attType
A value of the AttachToLink enumeration specifying whether to attach the node to a segment or to a control point of the link.
index
An index of link's control point or segment, depending on the attType value.

 Remarks

This method attaches the node to a control point or segment of the specified link. If there isn't a Group instance already associated with the master item, one is created automatically by this method. The group is then accessible by the master's SubordinateGroup property, or this node's MasterGroup property.

The node is attached by calling the AttachToLinkPoint or AttachToLinkSegment methods of Group, depending on the value of the attType argument. The attached node then maintains its original offset from a link's point or segment when link's shape changes.

 See Also