Search
RoutingOptions.LengthCost Property
See Also
 





Gets or sets a value added to the total cost of a route for each piece of the routing grid occupied by the route.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public byte LengthCost { get; set; }

Visual Basic  Copy Code

Public Property LengthCost As Byte

 Property Value

A byte value specifying the length cost. The default is 2.

 Remarks

This is a penalty value added to the total cost of an evaluated link route for each piece of the routing grid it occupies. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value to LengthCost leads to generating shorter paths.

 See Also