Gets a DiagramNodeCollection containing the nodes.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public DiagramNodeCollection Nodes { get; } |
Visual Basic
![]() |
---|
Public ReadOnly Property Nodes As DiagramNodeCollection |
An instance of the DiagramNodeCollection class.
Nodes provides type-safe access to all nodes in the current diagram. Any diagram element can be accessed also by using the Items collection.
The following code adds a new ControlNode to the diagram:
C#
![]() |
---|
ControlNode controlNode = new ControlNode(diagram); controlNode.Bounds = new Rect(10, 10, 30, 30); controlNode.Control = new ListView(); diagram.Nodes.Add(controlNode); |
Visual Basic
![]() |
---|
Dim controlNode As New ControlNode(diagram) controlNode.Bounds = New Rect(10, 10, 30, 30) controlNode.Control = New ListView() diagram.Nodes.Add(controlNode) |
MindFusion.Diagramming for WinUI Programmer's Guide | © 2024 MindFusion |