Search
Factory.CreateContainerNode Method (Single, Single, Single, Single, Boolean)
See Also
 





Creates a new ContainerNode instance at the specified location with the specified size, optionally foldable, and adds it to the Nodes collection of the underlying diagram.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public ContainerNode CreateContainerNode (
    float x,
    float y,
    float width,
    float height,
    bool foldable
)

Visual Basic  Copy Code

Public Function CreateContainerNode( _
    x As Single, _
    y As Single, _
    width As Single, _
    height As Single, _
    foldable As Boolean _
) As ContainerNode

 Parameters

x

The x-coordinate of the upper-left corner of the new node.

y

The y-coordinate of the upper-left corner of the new node.

width

The width of the new node.

height

The height of the new node.

foldable

true if the container can be folded; otherwise, false.

 Return Value

The newly created ContainerNode instance.

 Remarks

The method creates a container node at the position specified by x and y. The size of the container is set by width and height. The parameter foldable specifies whether the container node is initially foldable. For further customization of the node, use the properties and methods of the ContainerNode class.

 See Also