Search
LinkLabel Class
Remarks See Also
 





Represents a label displayed by a DiagramLink. New labels can be added to a link by calling the DiagramLink.AddLabel method.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public class LinkLabel : ItemLabel

Visual Basic  Copy Code

Public Class LinkLabel
    Inherits ItemLabel

 Remarks

The text displayed by a LinkLabel is set via the Text property, and its attributes are specified via Font* properties inherited from TextPresenter. The label's foreground and background can be set via TextBrush and Brush properties.

The target position of a label along link segments is specified through RelativeTo and Index, and offset from that position via HorizontalOffset and VerticalOffset properties. Instead of using fixed offsets, enable the AutoArrange property to let links automatically choose positions of their labels that won't intersect nodes or other labels.

You can let users arrange labels manually by setting the Behavior property of Diagram to MoveLabels.

 Inheritance Hierarchy

System.Object
    System.Windows.Threading.DispatcherObject
        System.Windows.DependencyObject
            System.Windows.Media.Visual
                System.Windows.UIElement
                    System.Windows.FrameworkElement
                        MindFusion.Diagramming.Wpf.TextPresenter
                            MindFusion.Diagramming.Wpf.ItemLabel
                                MindFusion.Diagramming.Wpf.LinkLabel

 See Also