MindFusion.Wpf Pack Programmer's Guide
SpringLayout.RandomSeed Property
See Also
 





Gets or sets the randomization seed to use for generating random node positions.

Namespace: MindFusion.Diagramming.Wpf.Layout
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public int RandomSeed { get; set; }

Visual Basic  Copy Code

Public Property RandomSeed As Integer

 Property Value

An integer value passed as a seed to the random number generator. The default value is 0.

 Remarks

If set to 0, SpringLayout uses the current time as a seed value. Set a value greater than 0 to use a fixed seed. Random numbers are generated when nodes are at the same initial position or when Randomize is enabled. Using a fixed seed helps producing consistent layouts at each run of the Arrange method.

 See Also

SpringLayout Members
SpringLayout Class
MindFusion.Diagramming.Wpf.Layout Namespace
Randomize Property