IDataProvider key to specify for each IEdgeLabelLayout s and each INodeLabelLayout a replacement IEdgeLabelModel or INodeLabelModel , respectively, that is used by the labeling algorithm instead of the original label model.

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

Syntax

C#
public static readonly Object LabelModelDpKey
Visual Basic
Public Shared ReadOnly LabelModelDpKey As Object

Remarks

IDataProvider key to specify for each IEdgeLabelLayout s and each INodeLabelLayout a replacement IEdgeLabelModel or INodeLabelModel , respectively, that is used by the labeling algorithm instead of the original label model. If this key is not defined or if a label has no mapping, the original model is used as normal. Otherwise, a model parameter that fits the calculated position of the replacement model best is set for the original model.

This feature is especially useful to restrict a free model. For example, to place a label upon its associated edge, a centered RotatedSliderEdgeLabelLayoutModel can be used a replacement model.

See Also