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





Attaches this node to one or more edges of the specified node.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void AttachTo (
    DiagramNode node,
    GroupAnchorStyles anchorStyles
)

Visual Basic  Copy Code

Public Sub AttachTo( _
    node As DiagramNode, _
    anchorStyles As GroupAnchorStyles _
)

 Parameters

node
A reference to the node to which to attach this node.
anchorStyles
A member of the GroupAnchorStyles enumeration specifying the master node's edges to which this node must be anchored.

 Remarks

This method attaches the current node to the corner of another node. 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 AttachToEdges method of Group, which mimics the anchoring of child controls in a form to the form edges, as implemented in Windows Forms.

 See Also