Search
GridLayout.RandomSeed Property
See Also
 



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

 Syntax

VB6  Copy Code

Public Property Get RandomSeed() As Long
Public Property Let RandomSeed( _
    ByVal value As Long _
)

C++  Copy Code

public:
int get_RandomSeed ()
void put_RandomSeed (
    int value
)

 Property Value

A long value. The default is 0.

 Remarks

In its initial stages, the grid layout routine places nodes at random locations. The default value of 0 makes random numbers generated from a different seed each time the routine runs. However, that could lead to the same graph having a different layout each time the algorithm is executed. If that's not desired, assign a value different than zero to this property.

 See Also