Search
DiagramItem.Weight Property
See Also
 





Gets or sets a weight value used in layout and path-finding algorithms.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public double Weight { get; set; }

Visual Basic  Copy Code

Public Property Weight As Double

 Property Value

A double value specifying the weight of this item. The default value is 1.

 Remarks

Currently Weight is used in the implementations of:

  • The SpringLayout class: the weight of a link connecting two nodes is multiplied by the desired NodeDistance to determine the final distance between the nodes.
  • The PathFinder class: an override of the FindShortestPath method uses the Weight values of nodes and/or links to find the path with smallest total weight.

 See Also