Allows applying constraints to the location and size of the node.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
SyntaxC#
Copy Code
|
|---|
public NodeConstraints Constraints { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property Constraints As NodeConstraints |
An instance of the NodeConstraints class.
RemarksThese constraints are considered when a user modifies the node interactively. They are ignored if node placement is changed programmatically by using methods and properties.
ExampleThis 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 |
See Also