Search
DiagramNode.AttachTo Method (DiagramNode, AttachToNode)
See Also
 





Attaches this node to a corner or a middle point of the specified node's bounding rectangle.

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

 Syntax

C#  Copy Code

public void AttachTo (
    DiagramNode node,
    AttachToNode attType
)

Visual Basic  Copy Code

Public Sub AttachTo( _
    node As DiagramNode, _
    attType As AttachToNode _
)

 Parameters

node

A reference to the node to whose corner to attach this node.

attType
A member of the AttachToNode enumeration specifying to which corner of a node to attach this node.

 Remarks

This method attaches the current node to the specified corner or middle point of another node's bounding rectangle. If there isn't a Group instance already associated with the master node, 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 AttachToCorner method of Group. The attached node then maintains its original offset from another node's corner point.

 See Also