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 the length factor if the RelativeTo property is set to RelativeToLink.LinkLength.

Link

Gets or sets the DiagramLink that displays this label.

Margin

Gets or sets the label's margin.

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. (Inherited from ItemLabel.)

GetEditRect

InplaceEditable.GetEditRect implementation.

GetTextToEdit

InplaceEditable.GetTextToEdit implementation.

LoadFromXml

Loads the label from the specified XML element.

OnTouchDown

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

OnTouchMove

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

OnTouchUp

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.

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

PointAlongLength

Overloaded.  

SaveToJson

Saves the label into a JsonObject.

 See Also