MindFusion.Wpf Pack Programmer's Guide
Factory.CreateContainerNode Method (Double, Double, Double, Double)
See Also
 





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

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

 Syntax

C#  Copy Code

public ContainerNode CreateContainerNode (
    double x,
    double y,
    double width,
    double height
)

Visual Basic  Copy Code

Public Function CreateContainerNode( _
    x As Double, _
    y As Double, _
    width As Double, _
    height As Double _
) 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.

 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. For further customization of the node, use the properties and methods of the ContainerNode class.

 See Also

CreateContainerNode Method Overload List
Factory Members
Factory Class
MindFusion.Diagramming.Wpf Namespace
CreateDiagramLink Method
CreateTableNode Method
Diagram.Nodes Property
Diagram.AlignPointToGrid Method