Represents a supplementary label displayed by a DiagramLink. New labels can be added to a link by calling the AddLabel method.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public class LinkLabel : ItemLabel |
Visual Basic
![]() |
---|
Public Class LinkLabel |
The text displayed by a LinkLabel is set via the Text property, and its attributes are specified via Font. The label's foreground and background can be set via TextBrush and Brush properties.
The position of a label is determined by where it is pinned along the link's geometry, as set using RelativeTo and Index properties, and offset from the pin point specified by HorizontalOffset and VerticalOffset properties. The SetControlPointPosition, SetSegmentPosition and SetLinkLengthPosition methods let you specify the values as arguments. 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 DiagramView to MoveLabels.
System.Object
MindFusion.Diagramming.ItemLabel
MindFusion.Diagramming.LinkLabel
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |