Allows applying constraints to the location and size of the node.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public NodeConstraints Constraints { get; set; } |
Visual Basic Copy Code |
---|
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# Copy Code |
---|
DiagramNode node = diagram.ActiveItem as DiagramNode; |
Visual Basic Copy Code |
---|
Dim node As DiagramNode = diagram.ActiveItem |