Represents a diagram node.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public abstract class DiagramNode : DiagramItem |
Visual Basic Copy Code |
---|
Public MustInherit Class DiagramNode |
DiagramNode instances can represent graph vertices, nodes in organizational or flow diagrams, entities in ER diagrams, and so on. DiagramNode is an abstract class. You cannot use it directly, but instead use objects from the ShapeNode, TableNode, and ContainerNode specific classes. You can also create your own node class by deriving from DiagramNode or its descendants.
Use the Bounds property to get or change the location and size of a node. To move a node without changing its size, call the Move method. To change only the size of a node, invoke the Resize method.
Constraints upon how users are allowed to modify a node are set through the Constraints and EnabledHandles properties. The former specifies constraints on move direction and node size. The latter enables or disables specific manipulation handles of a node.
Relations between nodes are indicated by connecting the nodes with DiagramLink instances. Links are considered directed graph edges, so each node has two collections referring to links: IncomingLinks and OutgoingLinks. AnchorPattern defines to which points of a node incoming or outgoing links can be connected. The AllowIncomingLinks property lets you specify whether incoming links can be drawn to a node. The AllowOutgoingLinks property lets you do that for outgoing links.
A user is allowed to expand or collapse the tree starting from a node if Expandable is set to true. The Expanded property gets or sets whether the subtree starting from a node is expanded or not.
Nodes can be attached to other items, and be used as simple labels, image-holders or other kinds of UI elements.
Nodes can be rotated, either interactively using the rotation handle above the node, or programmatically using the RotationAngle property.
System.Object
Microsoft.Maui.Controls.BindableObject
MindFusion.Diagramming.DiagramItem
MindFusion.Diagramming.DiagramNode
MindFusion.Diagramming.ContainerNode
MindFusion.Diagramming.DummyNode
MindFusion.Diagramming.FreeFormNode
MindFusion.Diagramming.ShapeNode
MindFusion.Diagramming.TableNode
MindFusion.Diagramming.TreeViewNode
MindFusion.Diagramming.Interaction.VirtualNode