The preferred distance between a label and the corresponding edge segment.

Namespace: yWorks.yFiles.Layout
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
public virtual double DistanceToEdge { get; set; }
Visual Basic
Public Overridable Property DistanceToEdge As Double Get Set

Remarks

Specifies the preferred distance between a label and the corresponding edge segment. If the given distance is < 0, the distance is not fixed, i.e., it is chosen by the automatic labeling algorithm. Default is -1.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionif the specified value is infinite or NaN.
System..::..InvalidOperationException if this instance is immutable .

See Also