NetDiagram Programmer's Guide
LinkLabel Members
Constructors Properties Methods
 


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

The following tables list the members exposed by the LinkLabel type.

 Public Constructors

  Name Description

LinkLabel

Overloaded. Initializes a new instance of the LinkLabel class.

 Public Properties

  Name Description

AutoArrange

Gets or sets a value indicating whether the label can be auto arranged.

Brush

Gets or sets the brush used to draw the label's background.

EnableWrap

Gets or sets a value indicating whether the label's text can be wrapped.

Font

Gets or sets the label's font.

HorizontalAlign

Gets or sets the label's horizontal alignment.

HorizontalOffset

Gets or sets the label's horizontal offset.

Index

Gets or sets the index of the segment or control point this label is relative to.

Link

Gets or sets the DiagramLink that displays this label.

Margin

Gets or sets the label's margin size.

MaxWidth

Gets or sets the maximum width of the label.

RelativeTo

Gets or sets the label's relative positioning.

Text

Gets or sets the label's text.

TextBrush

Gets or sets the brush used to draw the label's text.

VerticalAlign

Gets or sets the label's vertical alignment.

VerticalOffset

Gets or sets the label's vertical offset.

 Public Methods

  Name Description

Clone

Creates a clone of this label.

Draw

Draws the link label on the specified IGraphics surface.

GetEditRect

InplaceEditable.GetEditRect implementation.

GetTextToEdit

InplaceEditable.GetTextToEdit implementation.

LoadFromXml

Loads the label from the specified XML element.

SaveToXml

Saves the label into the specified XML element.

SetControlPointPosition

Positions this label relatively to the specified control point.

SetEditedText

InplaceEditable.SetEditedText implementation.

SetLinkLengthPosition

Positions this label relatively to the link length.

SetSegmentPosition

Positions this label relatively to the specified link segment.

 Protected Methods

  Name Description

LoadFromJson

Loads the label from a JSON object.

PointAlongLength

Returns a point lying on a polyline that is positioned at a relative position along the polyline's length.

SaveToJson

Saves the label as a JSON object.

 See Also

LinkLabel Class
MindFusion.Diagramming Namespace