MindFusion.Wpf Pack Programmer's Guide
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.Wpf
Assembly: MindFusion.Diagramming.Wpf

 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

RoutingOptions Members
RoutingOptions Class
MindFusion.Diagramming.Wpf Namespace
CrossingCost Property
NodeVicinityCost Property
TurnCost Property