Search
ItemLabel Members
Constructors Properties Methods
 


The base class for node and link labels.

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

 Public Constructors

  Name Description

ItemLabel

Overloaded.  

 Public Properties

  Name Description

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 from its pin point.

Index

Gets or sets the index of an edge or point this label is relative to.

Item

Gets or sets the DiagramItem that displays this label.

Margin

Gets or sets the label's margin.

MaxWidth

Gets or sets the maximum width of the label.

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 from its pin point.

 Public Methods

  Name Description

Cancel

Called when drag operation is canceled.

Draw

Draws the 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.

OnMouseMove

Called when the mouse is moved while this label tracks the mouse events.

OnMouseUp

Called when the left mouse button is released while this label tracks the mouse events.

SaveToXml

Saves the label into the specified XML element.

SetEditedText

InplaceEditable.SetEditedText implementation.

SetMouseCursor

Indicates what cursor to display for interactive labels.

UpdateValue

Called while drag operation is in progress.

 Protected Methods

  Name Description

LoadFromJson

Loads the label from a JsonObject.

SaveToJson

Saves the label into a JsonObject.

 See Also