Search
Factory.CreateShapeNode Method (PointF, SizeF, 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
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public ShapeNode CreateShapeNode (
    PointF location,
    SizeF size,
    Shape shape
)

Visual Basic  Copy Code

Public Function CreateShapeNode( _
    location As PointF, _
    size As SizeF, _
    shape As Shape _
) As ShapeNode

 Parameters

location

The position of the new node.

size

The size 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 location. The size of the node is set by size. The shape of the new node is specified by shape. For further customization of the node, use the properties and methods of the ShapeNode class.

 See Also