Gets or sets a value indicating whether the initial width/height ratio of a node should be preserved.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
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. For example in order to let users draw perfect square or circle shapes, set KeepRatio to true in the InitializeNode handler.
WpfDiagram Programmer's Guide | © 2024 MindFusion |