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.Silverlight
C# Copy Code |
---|
public byte LengthCost { get; set; } |
Visual Basic Copy Code |
---|
Public Property LengthCost As Byte |
A byte value specifying the length cost. The default is 2.
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.