MindFusion.Wpf Pack Programmer's Guide
Factory.CreateShapeNode Method (Point, Size, 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.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public ShapeNode CreateShapeNode (
    Point location,
    Size size,
    Shape shape
)

Visual Basic  Copy Code

Public Function CreateShapeNode( _
    location As Point, _
    size As Size, _
    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

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