Gets a Factory instance that lets you add programmatically new items to the diagram.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public Factory Factory { get; } |
Visual Basic Copy Code |
---|
Public ReadOnly Property Factory As Factory |
An instance of the Factory class.
You can add a new node or link to the diagram by creating an instance of the item class by using the new operator and adding it to the Nodes or Links collection. This works the same way for adding both items from your custom class or ones from the NetDiagram predefined types. The Factory class methods are just shortcuts that let you do that with a single method call, and they work only for the predefined item classes.
NetDiagram Programmer's Guide | © 2023 MindFusion |