Search
ContainerNode.Add Method (DiagramNode, GroupAnchorStyles)
See Also
 





Adds a node to this container.

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

 Syntax

C#  Copy Code

public void Add (
    DiagramNode node,
    GroupAnchorStyles anchorStyles
)

Visual Basic  Copy Code

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

 Parameters

node

The DiagramNode that should be added to the container.

anchorStyles

A combination of GroupAnchorStyles enum values.

 Remarks

If the container bounds do not include the specified node bounds, the container will grow automatically to accommodate the new node.

The anchorStyles argument lets you anchor the child node to a respective side or corner of the container, so the child moves or resizes along with the container when users modify the latter.

 See Also