Search
Diagram.AutoAlignNodes Property
See Also
 





Gets or sets whether nodes should automatically align to the borders of other nodes during user interaction.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool AutoAlignNodes { get; set; }

Visual Basic  Copy Code

Public Property AutoAlignNodes As Boolean

 Property Value

true to align nodes, otherwise false. The default value is false.

 Remarks

When either the horizontal or vertical borders of the dragged node are within AutoAlignDistance from the respective borders of a nearby node, the dragged node snaps to a position where the borders are aligned. In addition, an alignment guide that indicates which borders are aligned is drawn using the pen specified through AlignmentGuidePen.

 See Also