Search
Factory.CreateShapeNode Method (Double, Double, Double, Double, Shape)
See Also
 






Creates a new ShapeNode instance at the specified position with the specified size and shape, and adds it to the Nodes collection of the underlying diagram.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public ShapeNode CreateShapeNode (
    double x,
    double y,
    double width,
    double height,
    Shape shape
)

Visual Basic  Copy Code

Public Function CreateShapeNode( _
    x As Double, _
    y As Double, _
    width As Double, _
    height As Double, _
    shape As Shape _
) As ShapeNode

 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.

shape

The shape of the new node.

 Return Value

The newly created ShapeNode instance.

 Remarks

The method creates a shape node at the position specified by x and y. The size of the node is set by width and height. The shape of the new node is specified by shape.

 See Also