Creates a new SvgNode instance at the specified position with the specified size and adds it to the Nodes collection of the underlying diagram.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C#
![]() |
---|
public SvgNode CreateSvgNode ( |
Visual Basic
![]() |
---|
Public Function CreateSvgNode( _ |
The position of the new node.
The size of the new node.
The content of the new node.
The newly created SvgNode instance.
The method creates an SVG node at the position specified by location. The size of the node is set by size.
The following example illustrates how to create new SvgContent from an SVG file and how to create an SvgNode based on this content. The variable diagram references an existing Diagram object and fileName contains the name of the SVG file to load.
C#
![]() |
---|
SvgNode node = diagram.Factory.CreateSvgNode(0, 0, 20, 20); |
Visual Basic
![]() |
---|
Dim node As SvgNode = diagram.Factory.CreateSvgNode(0, 0, 20, 20) |
NetDiagram Programmer's Guide | © 2023 MindFusion |