public NetworkLayoutOptions ( AlgorithmEnum algorithm, float nodeSeparationTarget, int iterations, float nodeSize, float edgeThickness ) : System | ||
algorithm | AlgorithmEnum | |
nodeSeparationTarget | float | |
iterations | int | |
nodeSize | float | |
edgeThickness | float | |
return | System |
public NetworkLayoutOptions(
AlgorithmEnum algorithm,
float nodeSeparationTarget,
int iterations,
float nodeSize,
float edgeThickness)
{
if (nodeSeparationTarget <= 0)
{
throw new ArgumentOutOfRangeException();
}
if (iterations <= 1)
{
throw new ArgumentOutOfRangeException();
}
if (nodeSize < 1.0)
{
throw new ArgumentOutOfRangeException();
}
if (edgeThickness <= 0)
{
throw new ArgumentOutOfRangeException();
}
this.Algorithm = algorithm;
this.Iterations = iterations;
this.NodeSeparationTarget = nodeSeparationTarget;
this.NodeSize = nodeSize;
this.EdgeThickness = edgeThickness;
}
NetworkLayoutOptions::NetworkLayoutOptions ( ) : System |