Allows applying constraints to the location and size of the node.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public NodeConstraints Constraints { get; set; } |
Visual Basic
![]() |
---|
Public Property Constraints As NodeConstraints |
An instance of the NodeConstraints class.
These constraints are considered when a user modifies the node interactively. They are ignored if node placement is changed programmatically by using methods and properties.
This sample code disables moving or resizing a node vertically:
C#
![]() |
---|
DiagramNode node = diagram.ActiveItem as DiagramNode; |
Visual Basic
![]() |
---|
Dim node As DiagramNode = diagram.ActiveItem |
DiagramNode Members
DiagramNode Class
MindFusion.Diagramming Namespace
EnabledHandles Property
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |