Search
NodeLabel Members
Constructors Properties Methods
 


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

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

 Public Constructors

  Name Description

NodeLabel

Overloaded.  

 Public Properties

  Name Description

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 label's font. (Inherited from ItemLabel.)

HorizontalAlign

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

HorizontalOffset

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

Index

Gets or sets the index of the edge or corner 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. (Inherited from ItemLabel.)

MaxWidth

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

Node

Gets or sets the DiagramNode that displays this label.

RelativeTo

Gets or sets the label's relative positioning.

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

VerticalAlign

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

VerticalOffset

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

 Public Methods

  Name Description

Cancel

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

Clone

Creates a clone of this label.

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.

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.

SetCenterPosition

Positions this label relatively to the node center.

SetCornerPosition

Positions this label relatively to the specified corner point.

SetEdgePosition

Positions this label relatively to the specified node edge.

SetEditedText

InplaceEditable.SetEditedText implementation. (Inherited from ItemLabel.)

UpdateValue

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

 Protected Methods

  Name Description

LoadFromJson

Loads the label from a JsonObject.

SaveToJson

Saves the label into a JsonObject.

 See Also