MindFusion.Diagramming for JavaScript Programmer's Guide

Diagram.setAlignToGrid Method

See Also
 





Sets a value indicating whether the diagram items should be aligned to a grid.

Namespace: MindFusion.Diagramming
File: Diagram.js

 Syntax

JavaScript  Copy Code

function setAlignToGrid (value)

 Parameters

value

true if the diagram items should be aligned to a grid; otherwise, false.

 Remarks

When the property is set to true, the sides of every newly created diagram item are aligned to the nearest grid points.

 See Also