Gets or sets a value indicating whether the initial width/height ratio of a node must be preserved.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public bool KeepRatio { get; set; } |
Visual Basic Copy Code |
---|
Public Property KeepRatio As Boolean |
true if the node width to height ratio should be preserved; otherwise, false. The default is false.
If you enable this property in an initialization-event handler, the node will have an aspect ratio of 1:1. In order to let users draw perfect square or circle shapes, set KeepRatio to true in the InitializeNode handler.
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |