An edge label model that allows the placement at any position.

Namespace: yWorks.yFiles.UI.LabelModels
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version:


public class SmartEdgeLabelModel : ILabelModel, ILookup, ILabelModelParameterFinder
Visual Basic
Public Class SmartEdgeLabelModel _ Implements ILabelModel, ILookup, ILabelModelParameterFinder


Similar to RotatedSliderEdgeLabelModel, a position is specified by an edge segment and a ratio on that segment, amongst others. During changes of the edge path, the label keeps its relative location with respect to the bends of the reference segment in a similar way.

In contrast to RotatedSliderEdgeLabelModel, the distance from the edge path is not a property of the model but of the particular parameter. In addition, this class does not implement ILabelModelParameterProvider and therefore, labels with this model can be moved freely and are not restricted to a fixed set of candidates at a given distance from the edge.

If AutoRotation is enabled, labels are automatically rotated according to the angle of the corresponding reference edge segment.

During movements, labels with this model snap to noteable positions if the MoveLabelInputMode provides a LabelSnapContext that is enabled and has a suitable configuration.

Inheritance Hierarchy


See Also