Gets or sets a value indicating whether the initial width/height ratio of a node must be preserved.
Namespace: MindFusion.Diagramming
Package: 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.
NetDiagram Programmer's Guide | © 2023 MindFusion |