Search
LinkLabel Members
Constructors Properties Methods
 


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

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

 Public Constructors

  Name Description

LinkLabel

Initializes a new instance of the LinkLabel class.

 Public Properties

  Name Description

autoArrange

Gets or sets whether to automatically arrange the label to avoid overlapping nodes.

brush

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

Brush

Gets or sets the brush used to draw the label's background. (Inherited from ItemLabel.)

EnableWrap

Gets or sets a value indicating whether the label's text can be wrapped. (Inherited from ItemLabel.)

font

Gets or sets the font used to render label's text.

Font

Gets or sets the label's font. (Inherited from ItemLabel.)

horizontalAlign

Gets or sets the label's horizontal alignment.

HorizontalAlign

Gets or sets the label's horizontal alignment. (Inherited from ItemLabel.)

HorizontalOffset

Gets or sets the label's horizontal offset from its pin point. (Inherited from ItemLabel.)

Index

Gets or sets the index of an edge or point this label is relative to. (Inherited from ItemLabel.)

Item

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

margin

Gets or sets the label's margin.

Margin

Gets or sets the label's margin. (Inherited from ItemLabel.)

MaxWidth

Gets or sets the maximum width of the label. (Inherited from ItemLabel.)

text

Gets or sets the label's text.

Text

Gets or sets the label's text. (Inherited from ItemLabel.)

TextBrush

Gets or sets the brush used to draw the label's text. (Inherited from ItemLabel.)

textColor

Gets or sets the text color.

verticalAlign

Gets or sets the label's vertical alignment.

VerticalAlign

Gets or sets the label's vertical alignment. (Inherited from ItemLabel.)

VerticalOffset

Gets or sets the label's vertical offset from its pin point. (Inherited from ItemLabel.)

 Public Methods

  Name Description

Cancel

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

Draw

Draws the label on the specified IGraphics surface. (Inherited from ItemLabel.)

GetEditRect

InplaceEditable.GetEditRect implementation. (Inherited from ItemLabel.)

GetTextToEdit

InplaceEditable.GetTextToEdit implementation. (Inherited from ItemLabel.)

LoadFromXml

Loads the label from the specified XML element. (Inherited from ItemLabel.)

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

setControlPointPosition

Positions this label relatively to the specified control point.

SetEditedText

InplaceEditable.SetEditedText implementation. (Inherited from ItemLabel.)

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

SaveToJson

Saves the label into a JsonObject. (Inherited from ItemLabel.)

 See Also