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





Creates a new ShapeNode instance with the specified dimensions 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 (
    RectangleF bounds,
    Shape shape
)

Visual Basic  Copy Code

Public Function CreateShapeNode( _
    bounds As RectangleF, _
    shape As Shape _
) As ShapeNode

 Parameters

bounds

The bounding rectangle 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 with dimensions specified by bounds. 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