Sets a value indicating whether the initial width/height ratio of a node must be preserved.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public void setKeepRatio ( |
Indicates whether the initial width/height ratio of a node should be preserved.
If you enable this property in an initialization-event handler, the node will have an aspect ratio of 1:1. For example in order to let users draw perfect square or circle shapes, set KeepRatio to true in the initializeNode handler.