Search
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.

Item

Gets or sets the DiagramItem that displays this label. (Inherited from ItemLabel.)

LengthFactor

Gets or sets label's position along link's length when the RelativeTo property is set to LinkLength.

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

Cancel

Called when drag operation is canceled. (Inherited from ItemLabel.)

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.

OnMouseDown

Called when the left mouse button is pressed while the pointer is over this label. (Inherited from ItemLabel.)

OnMouseMove

Called when the mouse is moved while this label tracks the mouse events. (Inherited from ItemLabel.)

OnMouseUp

Called when the left mouse button is released while this label tracks the mouse events. (Inherited from ItemLabel.)

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.

SetMouseCursor

Indicates what cursor to display for interactive labels. (Inherited from ItemLabel.)

SetSegmentPosition

Positions this label relatively to the specified link segment.

UpdateValue

Called while drag operation is in progress. (Inherited from ItemLabel.)

 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