Search
Diagram.Factory Property
See Also
 






Gets a Factory instance that lets you add programmatically new items to the diagram.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Factory Factory { get; }

Visual Basic  Copy Code

Public ReadOnly Property Factory As Factory

 Property Value

An instance of the Factory class.

 Remarks

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 MindFusion.Diagramming for .NET MAUI 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.

 See Also