Search
NodeConstraints.KeepRatio Property
See Also
 





Gets or sets a value indicating whether the initial width/height ratio of a node must be preserved.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool KeepRatio { get; set; }

Visual Basic  Copy Code

Public Property KeepRatio As Boolean

 Property Value

true if the node width to height ratio should be preserved; otherwise, false. The default is false.

 Remarks

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.

 See Also