Search
Group.AttachToEdges Method
See Also
 





Anchors a node to the specified edges of the master node.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool AttachToEdges (
    DiagramNode node,
    GroupAnchorStyles anchorStyles
)

Visual Basic  Copy Code

Public Function AttachToEdges( _
    node As DiagramNode, _
    anchorStyles As GroupAnchorStyles _
) As Boolean

 Parameters

node

The DiagramNode to be attached.

anchorStyles
A member of the GroupAnchorStyles enumeration.

 Return Value

false if the node could not be attached; otherwise, true.

 Remarks

This method can be used only if the master item in the group is a node. Anchoring works in a manner similar to how child controls in a form can be anchored to the form edges. When the master node position changes, the position of the attached node is also changed so that the initial distance between the specified edges is preserved.

 See Also